echo-ultimate / app.py
Vikaspandey582003's picture
fix: pure FastAPI on port 7860 — all OpenEnv endpoints live + Gradio at /ui
fc58aef verified
raw
history blame contribute delete
532 Bytes
"""HuggingFace Space entry point — forwards to FastAPI+Gradio server."""
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# This file is kept for compatibility.
# The actual app is in server/app.py and launched via Dockerfile CMD:
# python -m uvicorn server.app:app --host 0.0.0.0 --port 7860
# All endpoints:
# /health /tasks /reset /step /state /metrics /fingerprint /history /docs /ui
from server.app import app # noqa: F401 — imported so this module is a valid ASGI target