rutsam commited on
Commit
71c3608
1 Parent(s): 6dda243

fix typoe use name instead of filename

Browse files
Files changed (1) hide show
  1. nemo_asr.py +1 -1
nemo_asr.py CHANGED
@@ -4,7 +4,7 @@ import nemo.collections.asr as nemo_asr
4
 
5
 
6
  def transcribe(file, modelName="stt_rw_conformer_transducer_large"):
7
- with open(file.filename, 'rb') as out_file:
8
  out_file = file.read() # async read
9
  #out_file.write(content) # async write
10
  print(out_file.name)
 
4
 
5
 
6
  def transcribe(file, modelName="stt_rw_conformer_transducer_large"):
7
+ with open(file.name, 'rb') as out_file:
8
  out_file = file.read() # async read
9
  #out_file.write(content) # async write
10
  print(out_file.name)