Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,8 @@ def search_the_web(query:str)-> str:
|
|
16 |
query: a string representing what is to be searched on the web
|
17 |
"""
|
18 |
search_tool = DuckDuckGoSearchTool()
|
19 |
-
query = "What is the capital of Germany?"
|
20 |
-
|
21 |
try:
|
22 |
results = search_tool(query)
|
23 |
-
|
24 |
-
|
25 |
except Exception as e:
|
26 |
return (f"Error: {e}")
|
27 |
return results
|
|
|
16 |
query: a string representing what is to be searched on the web
|
17 |
"""
|
18 |
search_tool = DuckDuckGoSearchTool()
|
|
|
|
|
19 |
try:
|
20 |
results = search_tool(query)
|
|
|
|
|
21 |
except Exception as e:
|
22 |
return (f"Error: {e}")
|
23 |
return results
|