Spaces:
Sleeping
Sleeping
File size: 355 Bytes
b644b80 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
import spaces
@spaces.GPU
def fn_zerogpu():
raise gr.Error("aaa")
def fn_normal():
raise gr.Error("aaa")
with gr.Blocks() as demo:
btn_zerogpu = gr.Button("Trigger ZeroGPU error")
btn_normal = gr.Button("Trigger normal error")
btn_zerogpu.click(fn=fn_zerogpu)
btn_normal.click(fn=fn_normal)
demo.launch()
|