Spaces:
Sleeping
Sleeping
File size: 340 Bytes
157c6fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import os
import sys
import uvicorn
from pathlib import Path
# Add current directory to path for imports
sys.path.insert(0, str(Path(__file__).parent))
# Import the inference API app
from inference_api_app import app
if __name__ == "__main__":
port = int(os.environ.get("PORT", 7860))
uvicorn.run(app, host="0.0.0.0", port=port)
|