Spaces:
Sleeping
Sleeping
Download cli.py from ariG23498/demo-trackio: direct link, hf CLI and curl.
- Browser
- Download file 870 Bytes
-
https://huggingface.co/spaces/ariG23498/demo-trackio/resolve/main/cli.py
- Command line
-
hf download hf://spaces/ariG23498/demo-trackio/cli.py
-
curl -L -o cli.py https://huggingface.co/spaces/ariG23498/demo-trackio/resolve/main/cli.py
870 Bytes
| import argparse | |
| from trackio import show | |
| def main(): | |
| parser = argparse.ArgumentParser(description="Trackio CLI") | |
| subparsers = parser.add_subparsers(dest="command") | |
| ui_parser = subparsers.add_parser( | |
| "show", help="Show the Trackio dashboard UI for a project" | |
| ) | |
| ui_parser.add_argument( | |
| "--project", required=False, help="Project name to show in the dashboard" | |
| ) | |
| ui_parser.add_argument( | |
| "--theme", | |
| required=False, | |
| default="citrus", | |
| help="A Gradio Theme to use for the dashboard instead of the default 'citrus', can be a built-in theme (e.g. 'soft', 'default'), a theme from the Hub (e.g. 'gstaff/xkcd').", | |
| ) | |
| args = parser.parse_args() | |
| if args.command == "show": | |
| show(args.project, args.theme) | |
| else: | |
| parser.print_help() | |
| if __name__ == "__main__": | |
| main() | |