Spaces:
Runtime error
Runtime error
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(
|
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
|