Spaces:
Runtime error
Runtime error
fix typoe use name instead of filename
Browse files- 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.
|
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)
|