Spaces:
Runtime error
Runtime error
Download tools.py from rdisipio/agents-course-final-assignment: direct link, hf CLI and curl.
- Browser
- Download file 695 Bytes
-
https://huggingface.co/spaces/rdisipio/agents-course-final-assignment/resolve/main/tools.py
- Command line
-
hf download hf://spaces/rdisipio/agents-course-final-assignment/tools.py
-
curl -L -o tools.py https://huggingface.co/spaces/rdisipio/agents-course-final-assignment/resolve/main/tools.py
695 Bytes
| 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", | |
| ) | |