Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
1bfebf7
1
Parent(s):
4c3f05f
fix: cut.load_audio needs to be an array
Browse files
app.py
CHANGED
|
@@ -26,7 +26,8 @@ def transcribe_audio(audio_filepath):
|
|
| 26 |
cut = cut.to_mono(mono_downmix=True)
|
| 27 |
|
| 28 |
# Load audio data
|
| 29 |
-
audio
|
|
|
|
| 30 |
|
| 31 |
# Generate transcription
|
| 32 |
with torch.inference_mode():
|
|
|
|
| 26 |
cut = cut.to_mono(mono_downmix=True)
|
| 27 |
|
| 28 |
# Load audio data
|
| 29 |
+
audio = cut.load_audio()
|
| 30 |
+
audio_lens = audio.shape[0]
|
| 31 |
|
| 32 |
# Generate transcription
|
| 33 |
with torch.inference_mode():
|