CazC commited on
Commit
094e924
·
verified ·
1 Parent(s): 811d9d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=greet, inputs="text", outputs="text")
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