Download app/run.py from CelestialWandererOfTheVoid/SR-second-task: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/CelestialWandererOfTheVoid/SR-second-task/resolve/main/app/run.py
- Command line
-
hf download hf://CelestialWandererOfTheVoid/SR-second-task/app/run.py
-
curl -L -o run.py https://huggingface.co/CelestialWandererOfTheVoid/SR-second-task/resolve/main/app/run.py
241 Bytes
| import sys | |
| from pathlib import Path | |
| # Add parent directory to PYTHONPATH | |
| sys.path.append(str(Path(__file__).resolve().parent.parent)) | |
| from app import ModelAPI | |
| api = ModelAPI( | |
| host = "0.0.0.0", | |
| port = 6500 | |
| ) | |
| api.run() |