Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import time
|
3 |
+
def my_function(x, progress=gr.Progress()):
|
4 |
+
progress(0, desc="Starting...")
|
5 |
+
time.sleep(1)
|
6 |
+
for i in progress.tqdm(range(100)):
|
7 |
+
time.sleep(0.1)
|
8 |
+
return x
|
9 |
+
gr.Interface(my_function, gr.Textbox(), gr.Textbox()).queue().launch()
|