Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,8 @@ import datetime
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
|
|
|
|
|
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
|
@@ -27,7 +29,7 @@ def web_search(query: str) -> list:
|
|
| 27 |
Returns:
|
| 28 |
A list of search results containing URLs and descriptions.
|
| 29 |
"""
|
| 30 |
-
search_tool =
|
| 31 |
results = search_tool.run(query)
|
| 32 |
return results
|
| 33 |
|
|
|
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
+
from langchain_community.tools import DuckDuckGoSearchRun
|
| 7 |
+
|
| 8 |
from tools.final_answer import FinalAnswerTool
|
| 9 |
|
| 10 |
from Gradio_UI import GradioUI
|
|
|
|
| 29 |
Returns:
|
| 30 |
A list of search results containing URLs and descriptions.
|
| 31 |
"""
|
| 32 |
+
search_tool = DuckDuckGoSearchRun()
|
| 33 |
results = search_tool.run(query)
|
| 34 |
return results
|
| 35 |
|