Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
import itertools | |
from pathlib import Path | |
import argparse | |
parser = argparse.ArgumentParser(description="Serve image from PFS") | |
parser.add_argument("--image-path", type=str, help="") | |
def paginator(label, items, items_per_page=10, on_sidebar=True): | |
"""Lets the user paginate a set of items. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENDPOINT_URL=http://192.168.64.8:30600 | |
AWS_REGION=us-east-1 | |
AWS_ACCESS_KEY_ID=test | |
AWS_SECRET_ACCESS_KEY=test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pipeline": { | |
"name": "inspect-input" | |
}, | |
"description": "Inspect /pfs/ input.", | |
"transform": { | |
"cmd": [ | |
"/bin/sh" | |
], | |
"stdin": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"resource_limits": { | |
"gpu": { | |
"type": "nvidia.com/gpu", | |
"number": 1 | |
} | |
}, | |
"resource_requests": { | |
"memory": "2G", | |
"cpu": 1 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scheduling_spec": { | |
"node_selector": { | |
"cloud.google.com/gke-accelerator": "nvidia-tesla-t4" | |
} | |
} |