Luigi commited on
Commit
202cb59
·
1 Parent(s): b7b0486

remove \ from the end of line in hotword files

Browse files
Files changed (1) hide show
  1. app/asr_worker.py +1 -1
app/asr_worker.py CHANGED
@@ -211,7 +211,7 @@ def create_recognizer(
211
  mode="w", delete=False, suffix=".txt", dir=str(CACHE_DIR)
212
  )
213
  for w in hotwords:
214
- tf.write(f"{w}\\n")
215
  tf.flush()
216
  tf.close()
217
  hotwords_file_path = tf.name
 
211
  mode="w", delete=False, suffix=".txt", dir=str(CACHE_DIR)
212
  )
213
  for w in hotwords:
214
+ tf.write(f"{w}\n")
215
  tf.flush()
216
  tf.close()
217
  hotwords_file_path = tf.name