Spaces:
Sleeping
Sleeping
| import time | |
| import gradio as gr | |
| import spaces | |
| def fn(): | |
| time.sleep(5) | |
| return "a" | |
| with gr.Blocks() as demo: | |
| btn = gr.Button() | |
| out = gr.Textbox() | |
| btn.click(fn=fn, outputs=out) | |
| demo.launch() |