HuseynG commited on
Commit
e6d0083
1 Parent(s): 03707a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,7 +1,15 @@
1
  import gradio as gr
 
 
 
 
2
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
1
  import gradio as gr
2
+ import time
3
+ import random
4
+ import threading
5
+ from utils import schedule_function
6
 
7
  def greet(name):
8
  return "Hello " + name + "!!"
9
 
10
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
11
+
12
+ if __name__ == '__main__':
13
+ scheduler_thread = threading.Thread(target=schedule_function)
14
+ scheduler_thread.start()
15
+ iface.launch()