File size: 695 Bytes
853e1cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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",
    )