Spaces:
Sleeping
Sleeping
File size: 491 Bytes
516bed8 e5e36db 7f5d26e e5e36db 3015947 7f5d26e e5e36db 516bed8 7f5d26e 516bed8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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)
|