Spaces:
Sleeping
Sleeping
| """ | |
| server/app.py - Entry point for `uv run server` and openenv multi-mode deployment. | |
| Delegates to the root app.py FastAPI application. | |
| """ | |
| import os | |
| import sys | |
| # Ensure project root is on the Python path | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| import uvicorn | |
| def main(): | |
| uvicorn.run("app:app", host="0.0.0.0", port=7860, workers=1) | |
| if __name__ == "__main__": | |
| main() | |