Spaces:
Sleeping
Sleeping
Commit
•
40728d8
1
Parent(s):
dcc4f2d
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()
|