Spaces:
Sleeping
Sleeping
fixed bug
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def convert_temp(arg1:float, arg2:str)-> float: #it's import to specify the retu
|
|
| 49 |
except Exception as e:
|
| 50 |
return f"Error converting temperature from '{arg1}'"
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
final_answer = FinalAnswerTool()
|
| 55 |
|
|
@@ -72,7 +72,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 72 |
|
| 73 |
agent = CodeAgent(
|
| 74 |
model=model,
|
| 75 |
-
tools=[final_answer, convert_temp,
|
| 76 |
max_steps=6,
|
| 77 |
verbosity_level=1,
|
| 78 |
grammar=None,
|
|
|
|
| 49 |
except Exception as e:
|
| 50 |
return f"Error converting temperature from '{arg1}'"
|
| 51 |
|
| 52 |
+
web_search = DuckDuckGoSearchTool()
|
| 53 |
|
| 54 |
final_answer = FinalAnswerTool()
|
| 55 |
|
|
|
|
| 72 |
|
| 73 |
agent = CodeAgent(
|
| 74 |
model=model,
|
| 75 |
+
tools=[final_answer, convert_temp, web_search], ## add your tools here (don't remove final answer)
|
| 76 |
max_steps=6,
|
| 77 |
verbosity_level=1,
|
| 78 |
grammar=None,
|