Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,7 +81,14 @@ prompt_templates = {
|
|
| 81 |
"Return the task definition via `final_answer()`."
|
| 82 |
)
|
| 83 |
},
|
| 84 |
-
"final_answer":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
}
|
| 86 |
|
| 87 |
agent = CodeAgent(
|
|
|
|
| 81 |
"Return the task definition via `final_answer()`."
|
| 82 |
)
|
| 83 |
},
|
| 84 |
+
"final_answer": {
|
| 85 |
+
"pre_messages": (
|
| 86 |
+
"Prepare the final response for the query: {{question}}. "
|
| 87 |
+
"Ensure the answer is clear and in the same language as the query. "
|
| 88 |
+
"Format the response using `final_answer()`."
|
| 89 |
+
),
|
| 90 |
+
"template": "Final response: {{answer}}"
|
| 91 |
+
}
|
| 92 |
}
|
| 93 |
|
| 94 |
agent = CodeAgent(
|