Spaces:
Runtime error
Runtime error
alex-mindspace
commited on
Commit
·
ea5c182
1
Parent(s):
34e351f
Update gradio_app/interface.py
Browse files- gradio_app/interface.py +9 -9
gradio_app/interface.py
CHANGED
@@ -24,15 +24,15 @@ def swarm_interface():
|
|
24 |
global SWARM_IS_RUNNING, SWARM_THREAD
|
25 |
# please, don't judge me for this hardcoding. it's 3am and it's the first time i use gradio =)))
|
26 |
# Call the necessary set_ functions with the user inputs
|
27 |
-
set_swarm_role(swarm_role)
|
28 |
-
set_swarm_global_goal(swarm_global_goal)
|
29 |
-
set_swarm_goals(swarm_goals)
|
30 |
-
agents_config = [
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
]
|
35 |
-
set_swarm_agents_config(agents_config)
|
36 |
|
37 |
SWARM_THREAD = threading.Thread(target=execute_swarm, args=(SWARM_IS_RUNNING,))
|
38 |
SWARM_THREAD.start()
|
|
|
24 |
global SWARM_IS_RUNNING, SWARM_THREAD
|
25 |
# please, don't judge me for this hardcoding. it's 3am and it's the first time i use gradio =)))
|
26 |
# Call the necessary set_ functions with the user inputs
|
27 |
+
# set_swarm_role(swarm_role)
|
28 |
+
# set_swarm_global_goal(swarm_global_goal)
|
29 |
+
# set_swarm_goals(swarm_goals)
|
30 |
+
# agents_config = [
|
31 |
+
# {"type": "manager", "n": n_managers},
|
32 |
+
# {"type": "analyst", "n": n_analysts},
|
33 |
+
# {"type": "googler", "n": n_googlers}
|
34 |
+
# ]
|
35 |
+
# set_swarm_agents_config(agents_config)
|
36 |
|
37 |
SWARM_THREAD = threading.Thread(target=execute_swarm, args=(SWARM_IS_RUNNING,))
|
38 |
SWARM_THREAD.start()
|