csukuangfj commited on
Commit
c036d2a
1 Parent(s): a8ff319

small fixes

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -141,7 +141,7 @@ def process(
141
  s.accept_wave_file(filename)
142
  recognizer.decode_stream(s)
143
 
144
- logging.info(s.result.text)
145
 
146
  date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
147
  end = time.time()
@@ -164,9 +164,9 @@ def process(
164
  )
165
 
166
  logging.info(info)
167
- logging.info(f"hyp:\n{s.result.text}")
168
 
169
- return s.result.text, build_html_output(info)
170
 
171
 
172
  title = "# Automatic Speech Recognition with Next-gen Kaldi"
 
141
  s.accept_wave_file(filename)
142
  recognizer.decode_stream(s)
143
 
144
+ text = s.result.text
145
 
146
  date_time = now.strftime("%Y-%m-%d %H:%M:%S.%f")
147
  end = time.time()
 
164
  )
165
 
166
  logging.info(info)
167
+ logging.info(f"repo_id: {repo_id}\nhyp:\n{text}")
168
 
169
+ return text, build_html_output(info)
170
 
171
 
172
  title = "# Automatic Speech Recognition with Next-gen Kaldi"