Spaces:
Sleeping
Sleeping
File size: 502 Bytes
d179ac1 f30c298 9c0b6a9 d179ac1 f30c298 d179ac1 9c0b6a9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
"""
Simple entry point for Hugging Face Spaces.
This file redirects to the FastAPI app in the app directory.
"""
# Import the app directly without using package notation
import sys
import os
# Add the current directory to the path so Python can find the app module
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Import the app from main.py in the app directory
from app.main import app
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=7860) |