Spaces:
Sleeping
Sleeping
update requirements and fix tools
Browse files- requirements.txt +4 -1
- tools.py +2 -4
requirements.txt
CHANGED
|
@@ -1,3 +1,6 @@
|
|
| 1 |
gradio
|
| 2 |
requests
|
| 3 |
-
smolagents[openai]
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
gradio
|
| 2 |
requests
|
| 3 |
+
smolagents[openai,transformers]
|
| 4 |
+
duckduckgo_search
|
| 5 |
+
wikipedia-api
|
| 6 |
+
transformers
|
tools.py
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
-
from smolagents import
|
| 2 |
|
| 3 |
-
search_tool = DuckDuckGoSearchTool()
|
| 4 |
interpreter_tool = PythonInterpreterTool()
|
| 5 |
google_search_tool = GoogleSearchTool()
|
| 6 |
-
web_search_tool = WebSearchTool()
|
| 7 |
visit_webpage_tool = VisitWebpageTool()
|
| 8 |
wikipedia_search_tool = WikipediaSearchTool()
|
| 9 |
speech_to_text_tool = SpeechToTextTool()
|
| 10 |
|
| 11 |
-
tools = [
|
|
|
|
| 1 |
+
from smolagents import PythonInterpreterTool, GoogleSearchTool, VisitWebpageTool, WikipediaSearchTool, SpeechToTextTool
|
| 2 |
|
|
|
|
| 3 |
interpreter_tool = PythonInterpreterTool()
|
| 4 |
google_search_tool = GoogleSearchTool()
|
|
|
|
| 5 |
visit_webpage_tool = VisitWebpageTool()
|
| 6 |
wikipedia_search_tool = WikipediaSearchTool()
|
| 7 |
speech_to_text_tool = SpeechToTextTool()
|
| 8 |
|
| 9 |
+
tools = [interpreter_tool, google_search_tool, visit_webpage_tool, wikipedia_search_tool, speech_to_text_tool]
|