Spaces:
Sleeping
Sleeping
File size: 331 Bytes
afbbb2b c21d2b9 afbbb2b fbdfc24 afbbb2b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# app.py
import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import sys
import os
from pathlib import Path
# Import FastAPI app
from api.main import app
if __name__ == "__main__":
import uvicorn
uvicorn.run(
app,
host="0.0.0.0",
port=7860,
log_level="info"
) |