Update app.py
Browse files
app.py
CHANGED
@@ -7,17 +7,6 @@ from tools.final_answer import FinalAnswerTool
|
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
-
# Initialize the search tool
|
11 |
-
search_tool = DuckDuckGoSearchTool()
|
12 |
-
|
13 |
-
# Perform a search
|
14 |
-
search_results = search_tool("Latest news on AI advancements")
|
15 |
-
|
16 |
-
# Process the search results
|
17 |
-
for result in search_results:
|
18 |
-
print(result['title'])
|
19 |
-
print(result['url'])
|
20 |
-
print(result['snippet'])
|
21 |
|
22 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
23 |
@tool
|
|
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
12 |
@tool
|