Spaces:
Runtime error
Runtime error
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -106,8 +106,7 @@ def search_and_extract_number(query: str) -> str:
|
|
| 106 |
"""
|
| 107 |
print(f"🛠️ search_and_extract_number called with: {query}")
|
| 108 |
raw = web_search_tool.search(query)
|
| 109 |
-
return extract_number_from_text(raw)
|
| 110 |
-
|
| 111 |
|
| 112 |
@tool
|
| 113 |
def search_duckduckgo(query: str) -> str:
|
|
|
|
| 106 |
"""
|
| 107 |
print(f"🛠️ search_and_extract_number called with: {query}")
|
| 108 |
raw = web_search_tool.search(query)
|
| 109 |
+
return extract_number_from_text.invoke(raw)
|
|
|
|
| 110 |
|
| 111 |
@tool
|
| 112 |
def search_duckduckgo(query: str) -> str:
|