alex-mindspace commited on
Commit
a065fd2
·
1 Parent(s): fcb0825

Upload 3 files

Browse files
Files changed (1) hide show
  1. gradio_app/interface.py +1 -0
gradio_app/interface.py CHANGED
@@ -103,6 +103,7 @@ def create_gradio_interface():
103
  return display_logs(), display_output()
104
 
105
  def submit_callback(swarm_role, swarm_global_goal, swarm_goals, n_managers, n_analysts, n_googlers):
 
106
  if isinstance(SWARM_THREAD, threading.Thread):
107
  SWARM_IS_RUNNING = SWARM_THREAD.is_alive()
108
  print(f"Swarm is running. SWARM_IS_RUNNING = {SWARM_IS_RUNNING}")
 
103
  return display_logs(), display_output()
104
 
105
  def submit_callback(swarm_role, swarm_global_goal, swarm_goals, n_managers, n_analysts, n_googlers):
106
+ global SWARM_IS_RUNNING, SWARM_THREAD
107
  if isinstance(SWARM_THREAD, threading.Thread):
108
  SWARM_IS_RUNNING = SWARM_THREAD.is_alive()
109
  print(f"Swarm is running. SWARM_IS_RUNNING = {SWARM_IS_RUNNING}")