Spaces:
Runtime error
Runtime error
Deploy GAIA agent
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
21 |
|
22 |
# --- Enhanced Tools for GAIA ---
|
23 |
|
|
|
24 |
@tool
|
25 |
def web_search_tool(query: str) -> str:
|
26 |
"""
|
@@ -31,7 +32,7 @@ def web_search_tool(query: str) -> str:
|
|
31 |
String containing search results
|
32 |
"""
|
33 |
try:
|
34 |
-
# Use duckduckgo_search directly
|
35 |
from duckduckgo_search import DDGS
|
36 |
|
37 |
results = []
|
|
|
21 |
|
22 |
# --- Enhanced Tools for GAIA ---
|
23 |
|
24 |
+
# Replace the web_search_tool implementation with this updated version
|
25 |
@tool
|
26 |
def web_search_tool(query: str) -> str:
|
27 |
"""
|
|
|
32 |
String containing search results
|
33 |
"""
|
34 |
try:
|
35 |
+
# Use duckduckgo_search directly with the current API
|
36 |
from duckduckgo_search import DDGS
|
37 |
|
38 |
results = []
|