camparchimedes commited on
Commit
c826ab8
·
verified ·
1 Parent(s): c5571fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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) / "audio_file"
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())