Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ pipe = pipeline("automatic-speech-recognition", model="NbAiLab/nb-whisper-large"
|
|
73 |
def transcribe_audio(audio_file, batch_size=16, sample_rate=16000):
|
74 |
|
75 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
76 |
-
temp_path = Path(tmpdirname) / "
|
77 |
|
78 |
with open(temp_path, "wb") as f:
|
79 |
f.write(audio_file.read())
|
|
|
73 |
def transcribe_audio(audio_file, batch_size=16, sample_rate=16000):
|
74 |
|
75 |
with tempfile.TemporaryDirectory() as tmpdirname:
|
76 |
+
temp_path = Path(tmpdirname) / "uploaded_audio.wav"
|
77 |
|
78 |
with open(temp_path, "wb") as f:
|
79 |
f.write(audio_file.read())
|