File size: 356 Bytes
f02c5b9
 
 
 
 
 
 
 
 
 
 
 
2cccea9
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Hugging Face Spaces entry point."""
import os
import sys

# Add app directory to path
sys.path.insert(0, os.path.dirname(__file__))

from app.main import app

# Export for Hugging Face Spaces
if __name__ == "__main__":
    import uvicorn
    # HF Spaces REQUIRES port 7860 - hardcoded to prevent override
    uvicorn.run(app, host="0.0.0.0", port=7860)