Spaces:
Runtime error
Runtime error
File size: 314 Bytes
2651a17 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # 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,
) |