Spaces:
Sleeping
Sleeping
File size: 645 Bytes
5ff6b14 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/usr/bin/env python3
"""
HuggingFace Spaces entry point for Advanced RAG API.
This file is the main entry point that HuggingFace Spaces will execute.
"""
# Import the FastAPI app from api.py
from api.api import app
# HuggingFace Spaces will automatically run this app
if __name__ == "__main__":
import uvicorn
from config.config import API_HOST, API_PORT
# For HuggingFace Spaces, we typically run on 0.0.0.0:7860
# But the import above is what actually matters for HF deployment
uvicorn.run(
app,
host="0.0.0.0",
port=7860, # HuggingFace Spaces default port
log_level="info"
)
|