Download app/run.py from vera6/sn48_2: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/vera6/sn48_2/resolve/main/app/run.py
- Command line
-
hf download hf://vera6/sn48_2/app/run.py
-
curl -L -o run.py https://huggingface.co/vera6/sn48_2/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() |