acrowth commited on
Commit
d5b2658
·
1 Parent(s): 99273c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ def transcribe(audio):
8
  #time.sleep(3)
9
  # load audio and pad/trim it to fit 30 seconds
10
  audio = whisper.load_audio(audio)
11
- audio = whisper.pad_or_trim(audio)
12
 
13
  # make log-Mel spectrogram and move to the same device as the model
14
  mel = whisper.log_mel_spectrogram(audio).to(model.device)
 
8
  #time.sleep(3)
9
  # load audio and pad/trim it to fit 30 seconds
10
  audio = whisper.load_audio(audio)
11
+ #audio = whisper.pad_or_trim(audio)
12
 
13
  # make log-Mel spectrogram and move to the same device as the model
14
  mel = whisper.log_mel_spectrogram(audio).to(model.device)