juancopi81 commited on
Commit
5c20ea7
·
1 Parent(s): 9f4877d

Update transforming/whispertransform.py

Browse files
Files changed (1) hide show
  1. transforming/whispertransform.py +3 -3
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
- # Get audio from video
40
- else:
41
- audio_file = self._get_audio_from_video(yt)
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)