Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
85 |
|
86 |
|
87 |
final_answer = FinalAnswerTool()
|
88 |
-
prompt_templates["final_answer"] = "Final answer: {answer}"
|
89 |
|
90 |
|
91 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
@@ -114,7 +113,10 @@ agent = CodeAgent(
|
|
114 |
planning_interval=None,
|
115 |
name=None,
|
116 |
description=None,
|
117 |
-
prompt_templates=prompt_templates
|
|
|
|
|
|
|
118 |
)
|
119 |
|
120 |
|
|
|
85 |
|
86 |
|
87 |
final_answer = FinalAnswerTool()
|
|
|
88 |
|
89 |
|
90 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
|
|
113 |
planning_interval=None,
|
114 |
name=None,
|
115 |
description=None,
|
116 |
+
#prompt_templates=prompt_templates
|
117 |
+
prompt_templates={
|
118 |
+
"final_answer": "Final answer: {answer}"
|
119 |
+
}
|
120 |
)
|
121 |
|
122 |
|