ahjvdjf33 commited on
Commit
273a5a8
·
verified ·
1 Parent(s): c1775a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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")