Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ print(f"Using {device} device")
|
|
| 27 |
pipe = pipeline(
|
| 28 |
"automatic-speech-recognition",
|
| 29 |
model="openai/whisper-base", # Smaller model for CPU
|
| 30 |
-
torch_dtype=torch.
|
| 31 |
device=device,
|
| 32 |
)
|
| 33 |
vocos = Vocos.from_pretrained("charactr/vocos-mel-24khz")
|
|
@@ -72,7 +72,7 @@ def load_model(page_name, repo_name, exp_name, model_cls, model_cfg, ckpt_step):
|
|
| 72 |
|
| 73 |
# Reduced model configurations
|
| 74 |
F5TTS_model_cfg = dict(
|
| 75 |
-
dim=1024, depth=12, heads=
|
| 76 |
)
|
| 77 |
E2TTS_model_cfg = dict(dim=1024, depth=12, heads=8, ff_mult=2)
|
| 78 |
|
|
|
|
| 27 |
pipe = pipeline(
|
| 28 |
"automatic-speech-recognition",
|
| 29 |
model="openai/whisper-base", # Smaller model for CPU
|
| 30 |
+
torch_dtype=torch.float16,
|
| 31 |
device=device,
|
| 32 |
)
|
| 33 |
vocos = Vocos.from_pretrained("charactr/vocos-mel-24khz")
|
|
|
|
| 72 |
|
| 73 |
# Reduced model configurations
|
| 74 |
F5TTS_model_cfg = dict(
|
| 75 |
+
dim=1024, depth=12, heads=16, ff_mult=2, text_dim=512, conv_layers=4
|
| 76 |
)
|
| 77 |
E2TTS_model_cfg = dict(dim=1024, depth=12, heads=8, ff_mult=2)
|
| 78 |
|