Update app.py
Browse files
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(
|
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]
|