added number tokinizer
Browse files
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(
|
| 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():
|