asierhv commited on
Commit
5566261
1 Parent(s): 671490e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ def transcribe(audio):
6
  transcription = tr[0][0]
7
  return transcription
8
 
9
- model_name = "HiTZ/stt_eu_conformer_transducer_large"
10
- model = nemo_asr.models.ASRModel.restore_from(model_name)
11
 
12
  iface = gr.Interface(fn=transcribe,
13
  inputs=[gr.Audio(type="filepath", label="Audio")],
 
6
  transcription = tr[0][0]
7
  return transcription
8
 
9
+ model_name = "models/HiTZ/stt_eu_conformer_transducer_large"
10
+ model = nemo_asr.models.ASRModel.from_pretrained(model_name)
11
 
12
  iface = gr.Interface(fn=transcribe,
13
  inputs=[gr.Audio(type="filepath", label="Audio")],