gradio/demo/concurrency_without_queue/run.ipynb
Archit-Kohli 921716f618
Fixed visibility issue for all notebooks on GitHub (#5917)
* fixed visibility error in notebooks in github

* Delete fixNotebooks.py

deleted script used to fix notebooks

* Update generate_notebooks.py

fixed a small bug that prevented visibility of notebooks in GitHub
2023-10-15 18:16:57 -07:00

859 B

Gradio Demo: concurrency_without_queue

In [ ]:
!pip install -q gradio 
In [ ]:
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(max_threads=41)