Spaces:
Runtime error
Runtime error
| # scripts/start_api.py | |
| import sys | |
| from pathlib import Path | |
| # Fix Python path | |
| ROOT_DIR = Path(__file__).resolve().parent.parent | |
| sys.path.append(str(ROOT_DIR)) | |
| import uvicorn | |
| if __name__ == "__main__": | |
| uvicorn.run( | |
| "app.main:app", | |
| host="0.0.0.0", | |
| port=8000, | |
| reload=True, | |
| ) |