piyazon commited on
Commit
c42ed4a
·
1 Parent(s): a41e7db

added number tokinizer

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -398,7 +398,7 @@ def text_to_speech(text, model_name):
398
  fixted_text = fix_pauctuations(process_uyghur_text_with_numbers(ug_latn_to_arab(chinese_to_pinyin(text))))
399
  print(fixted_text)
400
  # Tokenize input text
401
- inputs = tokenizer(fix_string(fixted_text), return_tensors="pt")
402
 
403
  # Generate speech waveform
404
  with torch.no_grad():
 
398
  fixted_text = fix_pauctuations(process_uyghur_text_with_numbers(ug_latn_to_arab(chinese_to_pinyin(text))))
399
  print(fixted_text)
400
  # Tokenize input text
401
+ inputs = tokenizer(fixted_text, return_tensors="pt")
402
 
403
  # Generate speech waveform
404
  with torch.no_grad():