Update
Browse files- app.py +1 -1
- e2bqwen.py +1 -1
app.py
CHANGED
|
@@ -576,7 +576,7 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js) as demo:
|
|
| 576 |
"Write 'Hello World' in a text editor",
|
| 577 |
"Search a flight Paris - Berlin for tomorrow",
|
| 578 |
"Search for Château de Fontainebleau in Google Maps",
|
| 579 |
-
"What is the picture that appeared on the very first version of the english Wikipedia page for the Palace of Fontainebleau?",
|
| 580 |
"Download me a picture of a puppy from Google, then head to Hugging Face, find a Space dedicated to background removal, and use it to remove the puppy picture's background"
|
| 581 |
],
|
| 582 |
inputs = task_input,
|
|
|
|
| 576 |
"Write 'Hello World' in a text editor",
|
| 577 |
"Search a flight Paris - Berlin for tomorrow",
|
| 578 |
"Search for Château de Fontainebleau in Google Maps",
|
| 579 |
+
"What is the picture that appeared on the very first version (2004) of the english Wikipedia page for the Palace of Fontainebleau?",
|
| 580 |
"Download me a picture of a puppy from Google, then head to Hugging Face, find a Space dedicated to background removal, and use it to remove the puppy picture's background"
|
| 581 |
],
|
| 582 |
inputs = task_input,
|
e2bqwen.py
CHANGED
|
@@ -408,7 +408,7 @@ class E2BVisionAgent(CodeAgent):
|
|
| 408 |
|
| 409 |
if (
|
| 410 |
isinstance(previous_memory_step, ActionStep)
|
| 411 |
-
and previous_memory_step.step_number
|
| 412 |
):
|
| 413 |
if previous_memory_step.tool_calls[0].arguments == memory_step.tool_calls[0].arguments:
|
| 414 |
memory_step.observations += "\nWARNING: You've executed the same action several times in a row. MAKE SURE TO NOT USELESSLY REPEAT ACTIONS."
|
|
|
|
| 408 |
|
| 409 |
if (
|
| 410 |
isinstance(previous_memory_step, ActionStep)
|
| 411 |
+
and previous_memory_step.step_number == current_step - 1
|
| 412 |
):
|
| 413 |
if previous_memory_step.tool_calls[0].arguments == memory_step.tool_calls[0].arguments:
|
| 414 |
memory_step.observations += "\nWARNING: You've executed the same action several times in a row. MAKE SURE TO NOT USELESSLY REPEAT ACTIONS."
|