Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def process_tool_output(tool_output):
|
|
| 16 |
return '\n'.join([item.get('title', '') for item in tool_output if item.get('title')]) or 'No results found'
|
| 17 |
return str(tool_output)
|
| 18 |
|
| 19 |
-
sys_prompt =
|
| 20 |
class BasicAgent:
|
| 21 |
def __init__(self):
|
| 22 |
print("BasicAgent initialized.")
|
|
|
|
| 16 |
return '\n'.join([item.get('title', '') for item in tool_output if item.get('title')]) or 'No results found'
|
| 17 |
return str(tool_output)
|
| 18 |
|
| 19 |
+
sys_prompt ="You are a helpful assistant tasked with answering questions using a set of tools. Now, I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.Your answer should only start with "FINAL ANSWER: ", then follows with the answer. "
|
| 20 |
class BasicAgent:
|
| 21 |
def __init__(self):
|
| 22 |
print("BasicAgent initialized.")
|