File size: 280 Bytes
40728d8
 
 
 
 
9e61a03
40728d8
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr
import time

def my_function(x, progress=gr.Progress()):
    progress(0, desc="Starting...")
    for i in progress.tqdm(range(20)):
        time.sleep(0.1)
    return x

gr.Interface(my_function, gr.Textbox(), gr.Textbox()).queue(concurrency_count=20).launch()