Spaces:
Sleeping
Sleeping
Download app.py from infoclassifier/InfoClassifier: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/app.py
- Command line
-
hf download hf://spaces/infoclassifier/InfoClassifier/app.py
-
curl -L -o app.py https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/app.py
491 Bytes
| import uvicorn | |
| import gradio as gr | |
| from server import app as fastapi_app | |
| def run_health_check(): | |
| return "InformationIntegrityEnv is running" | |
| demo = gr.Interface( | |
| fn=run_health_check, | |
| inputs=[], | |
| outputs="text", | |
| title="InformationIntegrityEnv" | |
| ) | |
| # Mount Gradio UI into FastAPI (FastAPI is the outer app — all /tasks, /grade etc. work) | |
| app = gr.mount_gradio_app(fastapi_app, demo, path="/ui") | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |