File size: 243 Bytes
ab2a7ea
 
 
 
 
 
 
 
 
 
 
 
 
5a14ad0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()