Update app.py
Browse files
app.py
CHANGED
|
@@ -41,8 +41,8 @@ vocoder = load_vocoder()
|
|
| 41 |
model = load_model(
|
| 42 |
DiT,
|
| 43 |
dict(dim=1024, depth=22, heads=16, ff_mult=2, text_dim=512, conv_layers=4),
|
| 44 |
-
ckpt_path=str(cached_path("hf://
|
| 45 |
-
vocab_file=str(cached_path("hf://
|
| 46 |
)
|
| 47 |
|
| 48 |
def infer_tts(ref_audio_orig: str, gen_text: str, speed: float = 1.0, request: gr.Request = None):
|
|
|
|
| 41 |
model = load_model(
|
| 42 |
DiT,
|
| 43 |
dict(dim=1024, depth=22, heads=16, ff_mult=2, text_dim=512, conv_layers=4),
|
| 44 |
+
ckpt_path=str(cached_path("hf://hynt/F5-TTS-Vietnamese-100h/model_500000.pt")),
|
| 45 |
+
vocab_file=str(cached_path("hf://hynt/F5-TTS-Vietnamese-100h/vocab.txt")),
|
| 46 |
)
|
| 47 |
|
| 48 |
def infer_tts(ref_audio_orig: str, gen_text: str, speed: float = 1.0, request: gr.Request = None):
|