Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,11 @@ from tools import (
|
|
| 22 |
query_image,
|
| 23 |
query_video
|
| 24 |
)
|
|
|
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
class BasicAgent:
|
|
@@ -41,7 +45,7 @@ class BasicAgent:
|
|
| 41 |
question = question[::-1]
|
| 42 |
print(f"Reversed question: {question}")
|
| 43 |
|
| 44 |
-
self.search_tool(question)
|
| 45 |
|
| 46 |
except Exception as e:
|
| 47 |
print(f"Error: {str(e)}")
|
|
|
|
| 22 |
query_image,
|
| 23 |
query_video
|
| 24 |
)
|
| 25 |
+
"""from langchain_community.tools import DuckDuckGoSearchRun
|
| 26 |
|
| 27 |
+
search_tool = DuckDuckGoSearchRun()
|
| 28 |
+
results = search_tool.invoke("Who's the current President of France?")
|
| 29 |
+
print(results)"""
|
| 30 |
|
| 31 |
|
| 32 |
class BasicAgent:
|
|
|
|
| 45 |
question = question[::-1]
|
| 46 |
print(f"Reversed question: {question}")
|
| 47 |
|
| 48 |
+
return self.search_tool(question)
|
| 49 |
|
| 50 |
except Exception as e:
|
| 51 |
print(f"Error: {str(e)}")
|