BenDaouda commited on
Commit
257dbc1
1 Parent(s): a8c5052

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,8 +14,8 @@ model = pipeline("automatic-speech-recognition", model=model_name, tokenizer=tok
14
 
15
  # Utilisez la fonction Gradio avec votre modèle chargé
16
  def transcribe(audio):
17
- result = model(audio)
18
- return result[0]['text']
19
 
20
  iface = gr.Interface(
21
  fn=transcribe,
@@ -23,4 +23,4 @@ iface = gr.Interface(
23
  outputs="text"
24
  )
25
 
26
- iface.launch(share=True)
 
14
 
15
  # Utilisez la fonction Gradio avec votre modèle chargé
16
  def transcribe(audio):
17
+ result = model(audio)["text"]
18
+ return result
19
 
20
  iface = gr.Interface(
21
  fn=transcribe,
 
23
  outputs="text"
24
  )
25
 
26
+ iface.launch()