Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,7 +136,7 @@ E2TTS_model_cfg = dict(dim=1024, depth=24, heads=16, ff_mult=4)
|
|
| 136 |
# "hf://Gregniuki/F5-tts_English_German_Polish/English/model_222600.pt", "", F5TTS_model_cfg
|
| 137 |
#)
|
| 138 |
F5TTS_ema_model = load_custom(
|
| 139 |
-
"hf://Gregniuki/F5-tts_English_German_Polish/
|
| 140 |
)
|
| 141 |
#E2TTS_ema_model2 = load_custom(
|
| 142 |
# "hf://Gregniuki/F5-tts_English_German_Polish/Polish/model_500000.pt", "", F5TTS_model_cfg
|
|
@@ -247,7 +247,7 @@ def infer_batch(ref_audio, ref_text, gen_text_batches, exp_name, remove_silence,
|
|
| 247 |
|
| 248 |
|
| 249 |
audio = audio.to(device)
|
| 250 |
-
tokenizer = Tokenizer.from_file("
|
| 251 |
vocab_size = tokenizer.get_vocab_size()
|
| 252 |
vocab = tokenizer.get_vocab()
|
| 253 |
|
|
|
|
| 136 |
# "hf://Gregniuki/F5-tts_English_German_Polish/English/model_222600.pt", "", F5TTS_model_cfg
|
| 137 |
#)
|
| 138 |
F5TTS_ema_model = load_custom(
|
| 139 |
+
"hf://Gregniuki/F5-tts_English_German_Polish/multi2/model_578435.pt", "", F5TTS_model_cfg
|
| 140 |
)
|
| 141 |
#E2TTS_ema_model2 = load_custom(
|
| 142 |
# "hf://Gregniuki/F5-tts_English_German_Polish/Polish/model_500000.pt", "", F5TTS_model_cfg
|
|
|
|
| 247 |
|
| 248 |
|
| 249 |
audio = audio.to(device)
|
| 250 |
+
tokenizer = Tokenizer.from_file("hf://Gregniuki/F5-tts_English_German_Polish/multi2/tokenizer.json")
|
| 251 |
vocab_size = tokenizer.get_vocab_size()
|
| 252 |
vocab = tokenizer.get_vocab()
|
| 253 |
|