Spaces:
Sleeping
Sleeping
| from execution.fastapi_server import app, APP_VERSION | |
| import uvicorn | |
| import os | |
| async def version_check(): | |
| return {"version": APP_VERSION, "status": "stable", "engine": "HyperMoon Ensemble v2"} | |
| if __name__ == "__main__": | |
| # Hugging Face Spaces usa a porta 7860 por padrão | |
| port = int(os.environ.get("PORT", 7860)) | |
| uvicorn.run(app, host="0.0.0.0", port=port) | |