rutsam commited on
Commit
b6c0e77
1 Parent(s): 3a4ad15

fix transcribe naming error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def transcribe(audio, audio_microphone):
25
  audio = audio_microphone if audio_microphone else audio
26
  if convert(audio)== False:
27
  return "The format must be mp3,wav and ogg"
28
- result= hf_model.transcribe(audio.name)
29
  return result[0]
30
  gradio_ui = gr.Interface(
31
  fn=transcribe,
 
25
  audio = audio_microphone if audio_microphone else audio
26
  if convert(audio)== False:
27
  return "The format must be mp3,wav and ogg"
28
+ result= hf_model.transcribe([audio.name])
29
  return result[0]
30
  gradio_ui = gr.Interface(
31
  fn=transcribe,