BassWow commited on
Commit
edd85cf
·
1 Parent(s): 14ea07b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def speech_to_text(tmp_filename, model_size):
7
  model = whisper.load_model(model_size)
8
 
9
  # load audio and pad/trim it to fit 30 seconds
10
- audio = whisper.load_audio("audio.mp3")
11
  audio = whisper.pad_or_trim(audio)
12
 
13
  # make log-Mel spectrogram and move to the same device as the model
 
7
  model = whisper.load_model(model_size)
8
 
9
  # load audio and pad/trim it to fit 30 seconds
10
+ audio = whisper.load_audio(tmp_filename)
11
  audio = whisper.pad_or_trim(audio)
12
 
13
  # make log-Mel spectrogram and move to the same device as the model