Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,11 +63,16 @@ def my_function(x, progress=gr.Progress()):
|
|
| 63 |
for i in progress.tqdm(range(100)):
|
| 64 |
time.sleep(0.1)
|
| 65 |
return x
|
|
|
|
| 66 |
|
| 67 |
demo = gr.Interface(
|
| 68 |
my_function,
|
| 69 |
gr.Textbox(),
|
| 70 |
-
gr.Textbox()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
)
|
| 72 |
|
| 73 |
demo.queue().launch()
|
|
|
|
| 63 |
for i in progress.tqdm(range(100)):
|
| 64 |
time.sleep(0.1)
|
| 65 |
return x
|
| 66 |
+
|
| 67 |
|
| 68 |
demo = gr.Interface(
|
| 69 |
my_function,
|
| 70 |
gr.Textbox(),
|
| 71 |
+
gr.Textbox(),
|
| 72 |
+
examples = [
|
| 73 |
+
["qwe"],
|
| 74 |
+
["asd"],
|
| 75 |
+
],
|
| 76 |
)
|
| 77 |
|
| 78 |
demo.queue().launch()
|