wiki_search and speech_to_text
Browse fileswiki_search = SpeechToTextTool()
speech_to_text = SpeechToTextTool()
tools.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool, FinalAnswerTool, GoogleSearchTool
|
| 2 |
from smolagents import Tool, tool
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
|
@@ -16,6 +16,11 @@ visit_webpage = VisitWebpageTool()
|
|
| 16 |
|
| 17 |
final_answer = FinalAnswerTool()
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
class WeatherInfoTool(Tool):
|
| 20 |
name = "weather_info"
|
| 21 |
description = "Fetches dummy weather information for a given location."
|
|
|
|
| 1 |
+
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool, FinalAnswerTool, GoogleSearchTool, WikipediaSearchTool, SpeechToTextTool
|
| 2 |
from smolagents import Tool, tool
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
|
|
|
| 16 |
|
| 17 |
final_answer = FinalAnswerTool()
|
| 18 |
|
| 19 |
+
wiki_search = SpeechToTextTool()
|
| 20 |
+
|
| 21 |
+
speech_to_text = SpeechToTextTool()
|
| 22 |
+
|
| 23 |
+
|
| 24 |
class WeatherInfoTool(Tool):
|
| 25 |
name = "weather_info"
|
| 26 |
description = "Fetches dummy weather information for a given location."
|