Ragora-Server / app.py
Peterase's picture
fix: hardcode port 7860 for HF Spaces
2cccea9
raw
history blame contribute delete
356 Bytes
"""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)