Spaces:
Sleeping
Sleeping
Download backend/run_server.py from shaun07/grid-backtest: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/shaun07/grid-backtest/resolve/main/backend/run_server.py
- Command line
-
hf download hf://spaces/shaun07/grid-backtest/backend/run_server.py
-
curl -L -o run_server.py https://huggingface.co/spaces/shaun07/grid-backtest/resolve/main/backend/run_server.py
338 Bytes
| """ | |
| Alternative script to run the server directly | |
| """ | |
| import sys | |
| import os | |
| # Add the current directory to Python path | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| if __name__ == "__main__": | |
| import uvicorn | |
| uvicorn.run( | |
| "server:app", | |
| host="0.0.0.0", | |
| port=8000, | |
| reload=True | |
| ) | |