Spaces:
Sleeping
Sleeping
Commit
·
6f5d1ef
1
Parent(s):
11fffcb
Added more tools
Browse files- requirements.txt +1 -0
- tools.py +4 -1
requirements.txt
CHANGED
@@ -4,3 +4,4 @@ whisper
|
|
4 |
smolagents
|
5 |
langchain_openai
|
6 |
langchain_core
|
|
|
|
4 |
smolagents
|
5 |
langchain_openai
|
6 |
langchain_core
|
7 |
+
wikipedia-api
|
tools.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from smolagents import Tool, DuckDuckGoSearchTool
|
2 |
import whisper
|
3 |
|
4 |
class read_file(Tool):
|
@@ -55,4 +55,7 @@ def return_tools() -> list[Tool]:
|
|
55 |
read_file(),
|
56 |
transcribe_audio(),
|
57 |
DuckDuckGoSearchTool(),
|
|
|
|
|
|
|
58 |
]
|
|
|
1 |
+
from smolagents import Tool, DuckDuckGoSearchTool, PythonInterpreterTool, VisitWebpageTool, WikipediaSearchTool
|
2 |
import whisper
|
3 |
|
4 |
class read_file(Tool):
|
|
|
55 |
read_file(),
|
56 |
transcribe_audio(),
|
57 |
DuckDuckGoSearchTool(),
|
58 |
+
PythonInterpreterTool(),
|
59 |
+
VisitWebpageTool(),
|
60 |
+
WikipediaSearchTool(),
|
61 |
]
|