Spaces:
Runtime error
Runtime error
Commit
·
fcb0825
1
Parent(s):
ee8e0ef
type error
Browse files- gradio_app/__pycache__/__init__.cpython-310.pyc +0 -0
- gradio_app/__pycache__/interacton_with_swarm.cpython-310.pyc +0 -0
- gradio_app/__pycache__/interface.cpython-310.pyc +0 -0
- gradio_app/interface.py +2 -1
- swarmai/__pycache__/Swarm.cpython-310.pyc +0 -0
- swarmai/__pycache__/__init__.cpython-310.pyc +0 -0
- swarmai/__pycache__/__main__.cpython-310.pyc +0 -0
gradio_app/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (139 Bytes). View file
|
|
gradio_app/__pycache__/interacton_with_swarm.cpython-310.pyc
ADDED
Binary file (8.18 kB). View file
|
|
gradio_app/__pycache__/interface.cpython-310.pyc
ADDED
Binary file (4.39 kB). View file
|
|
gradio_app/interface.py
CHANGED
@@ -103,7 +103,8 @@ 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 |
-
|
|
|
107 |
print(f"Swarm is running. SWARM_IS_RUNNING = {SWARM_IS_RUNNING}")
|
108 |
if not SWARM_IS_RUNNING:
|
109 |
swarm_interface(swarm_role, swarm_global_goal, swarm_goals, n_managers, n_analysts, n_googlers)
|
|
|
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}")
|
109 |
if not SWARM_IS_RUNNING:
|
110 |
swarm_interface(swarm_role, swarm_global_goal, swarm_goals, n_managers, n_analysts, n_googlers)
|
swarmai/__pycache__/Swarm.cpython-310.pyc
ADDED
Binary file (9.3 kB). View file
|
|
swarmai/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (136 Bytes). View file
|
|
swarmai/__pycache__/__main__.cpython-310.pyc
ADDED
Binary file (1.27 kB). View file
|
|