Commit ·
bc20d46
1
Parent(s): 92f38c9
wiki_search and speech_to_text (#6)
Browse files- wiki_search and speech_to_text (d7da3e11f6d388a81b706306eab5e5bf474b514f)
123411 unmodified lines161718192021from smolagents import DuckDuckGoSearchTool, VisitWebpageTool, FinalAnswerTool, GoogleSearchToolfrom smolagents import Tool, toolimport randomfrom huggingface_hub import list_models11 unmodified linesfinal_answer = FinalAnswerTool()class WeatherInfoTool(Tool):name = "weather_info"description = "Fetches dummy weather information for a given location."123411 unmodified lines1617181920212223242526from smolagents import DuckDuckGoSearchTool, VisitWebpageTool, FinalAnswerTool, GoogleSearchTool, WikipediaSearchTool, SpeechToTextToolfrom smolagents import Tool, toolimport randomfrom huggingface_hub import list_models11 unmodified linesfinal_answer = FinalAnswerTool()wiki_search = SpeechToTextTool()speech_to_text = SpeechToTextTool()class WeatherInfoTool(Tool):name = "weather_info"description = "Fetches dummy weather information for a given location."
tools.py+6-1