🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
fix: camel app AttributeError (#1439)
Wendong-Fan21e496fb0aad
diff --git a/apps/agents/agents.py b/apps/agents/agents.pyindex eda55369e..17b1ca0a4 100644--- a/apps/agents/agents.py+++ b/apps/agents/agents.py@@ -563,25 +563,33 @@ def construct_ui(blocks, api_key: Optional[str] = None) -> None:lambda v: gr.update(visible=v), task_specifier_cb, ts_word_limit_nb)+ def start_chain():+ state = cleanup_on_launch(session_state.value)+ state, specified_task, task_prompt, chat, progress = (+ role_playing_start(+ state,+ society_dd.value,+ assistant_ta.value,+ user_ta.value,+ original_task_ta.value,+ num_messages_sl.value,+ task_specifier_cb.value,+ ts_word_limit_nb.value,+ language_ta.value,+ )+ )+ state, chat, progress = role_playing_chat_init(state)+ return (+ state,+ specified_task,+ task_prompt,+ chat,+ progress,+ )+start_bn.click(- cleanup_on_launch,- session_state,- [session_state, chatbot, start_bn],- queue=False,- ).then(- role_playing_start,- [- session_state,- society_dd,- assistant_ta,- user_ta,- original_task_ta,- num_messages_sl,- task_specifier_cb,- ts_word_limit_nb,- language_ta,- ],- [+ fn=start_chain,+ outputs=[session_state,specified_task_ta,task_prompt_ta,@@ -589,11 +597,6 @@ def construct_ui(blocks, api_key: Optional[str] = None) -> None:progress_sl,],queue=False,- ).then(- role_playing_chat_init,- session_state,- [session_state, chatbot, progress_sl],- queue=False,)blocks.load(diff --git a/apps/agents/test/test_agents.py b/apps/agents/test/test_agents.pyindex 4abc4a961..27068dd4b 100644--- a/apps/agents/test/test_agents.py+++ b/apps/agents/test/test_agents.py@@ -26,7 +26,6 @@ from apps.agents.agents import ()[email protected](reason="Skipping this test temporarily")def test_construct_blocks():blocks = construct_blocks(None)assert isinstance(blocks, gr.Blocks)