Update app.py
Browse files
app.py
CHANGED
@@ -253,10 +253,14 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
253 |
combined_system_prompt = default_system_prompt + "\n\n" + my_added_prompts
|
254 |
# (4) Create the prompt templates to plug in CodeAgent
|
255 |
default_prompt_templates = PromptTemplates()
|
256 |
-
my_prompt_templates =
|
257 |
-
|
258 |
-
|
259 |
-
|
|
|
|
|
|
|
|
|
260 |
# (5) Create the CodeAgent, passing the LLM wrapper and tools
|
261 |
agent = CodeAgent(model=llm_model,
|
262 |
tools=[web_structure_analyzer_tool, wiki_tool, search_tool, python_tool, html_parse_tool],
|
|
|
253 |
combined_system_prompt = default_system_prompt + "\n\n" + my_added_prompts
|
254 |
# (4) Create the prompt templates to plug in CodeAgent
|
255 |
default_prompt_templates = PromptTemplates()
|
256 |
+
my_prompt_templates = {"system_prompt": combined_system_prompt,
|
257 |
+
"planning": default_prompt_templates["planning"],
|
258 |
+
"managed_agent": default_prompt_templates["managed_agent"],
|
259 |
+
"final_answer": default_prompt_templates["final_answer"]}
|
260 |
+
# my_prompt_templates = PromptTemplates(system_prompt=combined_system_prompt,
|
261 |
+
# planning=default_prompt_templates["planning"],
|
262 |
+
# managed_agent=default_prompt_templates["managed_agent"],
|
263 |
+
# final_answer=default_prompt_templates["final_answer"])
|
264 |
# (5) Create the CodeAgent, passing the LLM wrapper and tools
|
265 |
agent = CodeAgent(model=llm_model,
|
266 |
tools=[web_structure_analyzer_tool, wiki_tool, search_tool, python_tool, html_parse_tool],
|