Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,13 +34,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
-
def
|
| 38 |
-
"""A tool that
|
| 39 |
Args:
|
| 40 |
-
|
| 41 |
"""
|
| 42 |
|
| 43 |
-
return DuckDuckGoSearchTool(
|
| 44 |
|
| 45 |
final_answer = FinalAnswerTool()
|
| 46 |
|
|
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
+
def search_duck_duck_go(search_str: str) -> str:
|
| 38 |
+
"""A tool that searches DuckDuckGo
|
| 39 |
Args:
|
| 40 |
+
search_str: The result of the text
|
| 41 |
"""
|
| 42 |
|
| 43 |
+
return DuckDuckGoSearchTool(search_str)
|
| 44 |
|
| 45 |
final_answer = FinalAnswerTool()
|
| 46 |
|