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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def transcribe(audio):
7
  return transcription
8
 
9
  model_name = "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")],
 
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")],