Spaces:
Sleeping
Sleeping
Download server/app.py from soonvalley04/split-brain-training: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/soonvalley04/split-brain-training/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/soonvalley04/split-brain-training/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/soonvalley04/split-brain-training/resolve/main/server/app.py
421 Bytes
| import sys | |
| import os | |
| import uvicorn | |
| # Point back to the root directory so it can find your actual app | |
| sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| # Import the FastAPI app from the root app.py | |
| from app import app | |
| def main(): | |
| """Entry point required by the OpenEnv validator.""" | |
| uvicorn.run(app, host="0.0.0.0", port=7860, log_level="info") | |
| if __name__ == "__main__": | |
| main() |