Spaces:
Runtime error
Runtime error
Commit
·
5c20ea7
1
Parent(s):
9f4877d
Update transforming/whispertransform.py
Browse files
transforming/whispertransform.py
CHANGED
@@ -36,9 +36,9 @@ class WhisperTransform(Transform):
|
|
36 |
print ("Video not available \n")
|
37 |
print(f"Exception: {e}")
|
38 |
pass
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
|
43 |
result = self.model.transcribe(audio_file,
|
44 |
without_timestamps=self.without_timestamps)
|
|
|
36 |
print ("Video not available \n")
|
37 |
print(f"Exception: {e}")
|
38 |
pass
|
39 |
+
|
40 |
+
print(f"Video title and url: {video.title} {video.url}")
|
41 |
+
audio_file = self._get_audio_from_video(yt)
|
42 |
|
43 |
result = self.model.transcribe(audio_file,
|
44 |
without_timestamps=self.without_timestamps)
|