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 ='Please answer questions in the shortest possible words to ensure that the search tool does not exhaust the generator and avoid the StopIteration error.'
|
| 20 |
class BasicAgent:
|
| 21 |
def __init__(self):
|
| 22 |
print("BasicAgent initialized.")
|