Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
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()
|