Kleber commited on
Commit
1e0aa04
1 Parent(s): 3d4d376

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,12 +3,12 @@ import gradio as gr
3
 
4
  asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(model_name="stt_rw_conformer_ctc_large")
5
 
6
- def transcribe(state, file):
7
 
8
  #if not audio:
9
  # return {state_var: state, transcription_var: state}
10
 
11
-
12
  transcription= asr_model.transcribe([file])
13
  print(transcription)
14
  return transcription[0]
 
3
 
4
  asr_model = nemo_asr.models.EncDecCTCModelBPE.from_pretrained(model_name="stt_rw_conformer_ctc_large")
5
 
6
+ def transcribe(file):
7
 
8
  #if not audio:
9
  # return {state_var: state, transcription_var: state}
10
 
11
+ print("filename: ",file)
12
  transcription= asr_model.transcribe([file])
13
  print(transcription)
14
  return transcription[0]