softenq-devbox / app.py
vilkhovskiy's picture
Update app.py
bb968fb verified
Raw History Blame Contribute Delete
495 Bytes
import gradio as gr
import spaces
from datetime import datetime, timezone
@spaces.GPU
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()