confereai-dev / main.py
TEDDyx86's picture
Fix: Add robust error handling and frontend ERROR state
89dd351
raw
history blame contribute delete
401 Bytes
from execution.fastapi_server import app, APP_VERSION
import uvicorn
import os
@app.get("/version-check")
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)