Photon08 commited on
Commit
6f66c35
·
1 Parent(s): 8407d4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def predict(url=None, translation="No",tran_lang="en"):
17
  data = pytube.YouTube(file_path)
18
  speech = data.streams.get_audio_only()
19
  audio_file = speech.download()
20
- audio_35 = whisper.load_audio(file_path)
21
 
22
  audio = whisper.pad_or_trim(audio_35)
23
 
 
17
  data = pytube.YouTube(file_path)
18
  speech = data.streams.get_audio_only()
19
  audio_file = speech.download()
20
+ audio_35 = whisper.load_audio(audio_file)
21
 
22
  audio = whisper.pad_or_trim(audio_35)
23