aliabd's picture
aliabd HF staff
Upload folder using huggingface_hub
b33391a verified
raw
history blame
243 Bytes
import gradio as gr
import time
def say_hello(name):
time.sleep(5)
return f"Hello {name}!"
with gr.Blocks() as demo:
inp = gr.Textbox()
outp = gr.Textbox()
button = gr.Button()
button.click(say_hello, inp, outp)
demo.launch()