File size: 567 Bytes
175fee8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
"""
Entry point for Hugging Face Spaces deployment.
This file is required by Hugging Face Spaces to know how to start the application.
"""
import uvicorn
from app.main import app

if __name__ == "__main__":
    # This will be called when running locally with `python app.py`
    uvicorn.run(
        "app.main:app",
        host="0.0.0.0",
        port=7860,  # Hugging Face Spaces default port
        reload=False
    )
else:
    # This is used when imported by Hugging Face Spaces
    # HF Spaces will import `app` from this module
    pass