Spaces:
Sleeping
Sleeping
Update tools/youtube_video_tool.py
Browse files
tools/youtube_video_tool.py
CHANGED
|
@@ -6,12 +6,13 @@ import requests
|
|
| 6 |
import subprocess
|
| 7 |
import tempfile
|
| 8 |
from io import BytesIO
|
|
|
|
| 9 |
|
| 10 |
import av
|
| 11 |
import yt_dlp
|
| 12 |
from tools.speech_recognition_tool import SpeechRecognitionTool
|
| 13 |
|
| 14 |
-
class YouTubeVideoTool:
|
| 15 |
name = 'youtube_video'
|
| 16 |
description = 'Process a YouTube video and answer questions based on content.'
|
| 17 |
|
|
|
|
| 6 |
import subprocess
|
| 7 |
import tempfile
|
| 8 |
from io import BytesIO
|
| 9 |
+
from tools.base_tool import BaseTool
|
| 10 |
|
| 11 |
import av
|
| 12 |
import yt_dlp
|
| 13 |
from tools.speech_recognition_tool import SpeechRecognitionTool
|
| 14 |
|
| 15 |
+
class YouTubeVideoTool(BaseTool):
|
| 16 |
name = 'youtube_video'
|
| 17 |
description = 'Process a YouTube video and answer questions based on content.'
|
| 18 |
|