Download app.py from Ksu2023/test: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/spaces/Ksu2023/test/resolve/main/app.py
- Command line
-
hf download hf://spaces/Ksu2023/test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Ksu2023/test/resolve/main/app.py
720 Bytes
| import gradio as gr | |
| import spaces | |
| from omr_backend import app as fastapi_app | |
| def zero_gpu_ready(message: str = "ready") -> str: | |
| return f"ZeroGPU function detected and available: {message}" | |
| with gr.Blocks(title="OMR Comparator Backend") as demo: | |
| gr.Markdown("# OMR Comparator Backend") | |
| gr.Markdown("Gateway health check for the OMR Bench application.") | |
| message = gr.Textbox(value="ready", label="Message") | |
| check = gr.Button("Check ZeroGPU") | |
| output = gr.Textbox(label="Status") | |
| check.click( | |
| fn=zero_gpu_ready, | |
| inputs=message, | |
| outputs=output, | |
| api_name="zero_gpu_ready", | |
| ) | |
| demo.queue() | |
| app = gr.mount_gradio_app(fastapi_app, demo, path="/") |