freddyaboulton HF staff commited on
Commit
40728d8
1 Parent(s): dcc4f2d
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import time
3
+
4
+ def my_function(x, progress=gr.Progress()):
5
+ progress(0, desc="Starting...")
6
+ for i in progress.tqdm(range(100)):
7
+ time.sleep(0.1)
8
+ return x
9
+
10
+ gr.Interface(my_function, gr.Textbox(), gr.Textbox()).queue(concurrency_count=20).launch()