Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
def greet(text):
|
|
|
|
|
|
|
|
|
|
| 4 |
return " Echo " + text
|
| 5 |
|
| 6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import time
|
| 3 |
|
| 4 |
def greet(text):
|
| 5 |
+
print('start sleep')
|
| 6 |
+
time.sleep(20)
|
| 7 |
+
print('end sleep')
|
| 8 |
return " Echo " + text
|
| 9 |
|
| 10 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|