any2human / app /ui.py
idnameraj's picture
Upload 60 files
1103f3b verified
Raw
History Blame Contribute Delete
540 Bytes
"""Deprecated Gradio UI — use React frontend + `python app.py` / uvicorn instead."""
from __future__ import annotations
import warnings
warnings.warn(
"app.ui (Gradio) is deprecated. Run `python app.py` to serve the React UI + API.",
DeprecationWarning,
stacklevel=2,
)
if __name__ == "__main__":
import os
import uvicorn
host = os.environ.get("HOST", "0.0.0.0")
port = int(os.environ.get("PORT", "7860") or "7860")
uvicorn.run("app.main:app", host=host, port=port, reload=False)