Spaces:
Running on Zero
Running on Zero
Download app.py from vilkhovskiy/softenq-devbox: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/spaces/vilkhovskiy/softenq-devbox/resolve/main/app.py
- Command line
-
hf download hf://spaces/vilkhovskiy/softenq-devbox/app.py
-
curl -L -o app.py https://huggingface.co/spaces/vilkhovskiy/softenq-devbox/resolve/main/app.py
495 Bytes
| import gradio as gr | |
| import spaces | |
| from datetime import datetime, timezone | |
| def gpu_check(): import torch; return "GPU ok | " + torch.cuda.get_device_name(0) + " | " + datetime.now(timezone.utc).isoformat() | |
| demo = gr.Interface(fn=gpu_check, inputs=[], outputs=gr.Textbox(label="result"), title="softenq-devbox", description="Keepalive box for Softenq infra. Root GET serves HTML only and does NOT consume GPU quota. Press the button to test ZeroGPU (H200, 5 min/day).") | |
| demo.launch() |