Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Main entry point for Hugging Face Spaces deployment
|
| 3 |
+
This file should be in the root directory
|
| 4 |
+
"""
|
| 5 |
+
from backend.app import app
|
| 6 |
+
|
| 7 |
+
# This allows Hugging Face to find and run the FastAPI app
|
| 8 |
+
if __name__ == "__main__":
|
| 9 |
+
import uvicorn
|
| 10 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|