Download run_demonstrator.py from bcebere/test3: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/bcebere/test3/resolve/main/run_demonstrator.py
- Command line
-
hf download hf://spaces/bcebere/test3/run_demonstrator.py
-
curl -L -o run_demonstrator.py https://huggingface.co/spaces/bcebere/test3/resolve/main/run_demonstrator.py
347 Bytes
| # stdlib | |
| import argparse | |
| from pathlib import Path | |
| # adjutorium absolute | |
| from adjutorium.deploy.run import start_app_server | |
| def run(app: str) -> None: | |
| start_app_server(Path(app)) | |
| if __name__ == "__main__": | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--app", type=str) | |
| args = parser.parse_args() | |
| run(args.app) | |