Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,6 +53,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
53 |
except Exception as e:
|
54 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
55 |
|
|
|
56 |
|
57 |
final_answer = FinalAnswerTool()
|
58 |
|
@@ -76,7 +77,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
76 |
|
77 |
agent = CodeAgent(
|
78 |
model=model,
|
79 |
-
tools=[final_answer,
|
80 |
max_steps=6,
|
81 |
verbosity_level=1,
|
82 |
grammar=None,
|
|
|
53 |
except Exception as e:
|
54 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
55 |
|
56 |
+
duckduckgo_tool = DuckDuckGoSearchTool()
|
57 |
|
58 |
final_answer = FinalAnswerTool()
|
59 |
|
|
|
77 |
|
78 |
agent = CodeAgent(
|
79 |
model=model,
|
80 |
+
tools=[final_answer,duckduckgo_tool], ## add your tools here (don't remove final answer)
|
81 |
max_steps=6,
|
82 |
verbosity_level=1,
|
83 |
grammar=None,
|