Spaces:
Running
Running
Update app.py
Browse filesAdding duck_duck_go search.
app.py
CHANGED
@@ -52,6 +52,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
52 |
|
53 |
|
54 |
final_answer = FinalAnswerTool()
|
|
|
|
|
55 |
model = HfApiModel(
|
56 |
max_tokens=2096,
|
57 |
temperature=0.5,
|
@@ -72,7 +74,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
72 |
|
73 |
agent = CodeAgent(
|
74 |
model=model,
|
75 |
-
tools=[final_answer, count_letter_in_word, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
76 |
max_steps=6,
|
77 |
verbosity_level=1,
|
78 |
grammar=None,
|
|
|
52 |
|
53 |
|
54 |
final_answer = FinalAnswerTool()
|
55 |
+
duck_duck_go_search = DuckDuckGoSearchTool
|
56 |
+
|
57 |
model = HfApiModel(
|
58 |
max_tokens=2096,
|
59 |
temperature=0.5,
|
|
|
74 |
|
75 |
agent = CodeAgent(
|
76 |
model=model,
|
77 |
+
tools=[final_answer, duck_duck_go_search, count_letter_in_word, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
78 |
max_steps=6,
|
79 |
verbosity_level=1,
|
80 |
grammar=None,
|