Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|