| from smolagents import Tool | |
| audio_transcription_tool = Tool.from_space( | |
| "hf-audio/whisper-large-v3-turbo", | |
| name="audio_transcription", | |
| description="Transcribe audio files (using their URL)", | |
| api_name="/predict_1", | |
| ) | |
| yt_video_transcription_tool = Tool.from_space( | |
| "hf-audio/whisper-large-v3-turbo", | |
| name="yt_video_transcription", | |
| description="Transcribe YouTube videos (using their URL)", | |
| api_name="/predict_2", | |
| ) | |
| image_understanding_tool = Tool.from_space( | |
| "VIDraft/BLIP2", | |
| name="image_understanding_tool", | |
| description="Describe images (using their local path)", | |
| api_name="/chat", | |
| ) | |