Update app.py
Browse files
app.py
CHANGED
@@ -85,6 +85,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
85 |
|
86 |
|
87 |
final_answer = FinalAnswerTool()
|
|
|
|
|
88 |
|
89 |
# 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:
|
90 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
@@ -112,8 +114,7 @@ agent = CodeAgent(
|
|
112 |
planning_interval=None,
|
113 |
name=None,
|
114 |
description=None,
|
115 |
-
|
116 |
-
prompt_templates= {prompt_templates,"Final answer: {answer}"}
|
117 |
)
|
118 |
|
119 |
|
|
|
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:
|
92 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
|
|
114 |
planning_interval=None,
|
115 |
name=None,
|
116 |
description=None,
|
117 |
+
prompt_templates=prompt_templates
|
|
|
118 |
)
|
119 |
|
120 |
|