File size: 273 Bytes
ab2a7ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.queue(concurrency_count=41).launch()