Spaces:
Sleeping
Sleeping
""" | |
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) |