Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def kickoff_worker():
|
|
10 |
from worker import worker # import the worker function
|
11 |
worker() # call the worker function
|
12 |
|
13 |
-
iface = gr.Interface(fn=
|
14 |
iface.launch()
|
15 |
print("Launching worker...")
|
16 |
-
kickoff_worker() # kickoff the worker after launching the interface
|
|
|
10 |
from worker import worker # import the worker function
|
11 |
worker() # call the worker function
|
12 |
|
13 |
+
iface = gr.Interface(fn=kickoff_worker, inputs="text", outputs="text", live=True)
|
14 |
iface.launch()
|
15 |
print("Launching worker...")
|
16 |
+
# kickoff_worker() # kickoff the worker after launching the interface
|