Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,6 @@ multilingual_model = ChatterboxMultilingualTTS.from_pretrained(device=device)
|
|
| 9 |
# ----
|
| 10 |
# Then download the file from huggingface and place it in the current directory.
|
| 11 |
# ----
|
| 12 |
-
|
| 13 |
-
map_location=torch.device('cpu')
|
| 14 |
t3_state = load_safetensors("Thomcles/Chatterbox-TTS-Persian-Farsi/t3_fa.safetensors", device="cpu")
|
| 15 |
multilingual_model.t3.load_state_dict(t3_state)
|
| 16 |
multilingual_model.t3.to(device).eval()
|
|
|
|
| 9 |
# ----
|
| 10 |
# Then download the file from huggingface and place it in the current directory.
|
| 11 |
# ----
|
|
|
|
|
|
|
| 12 |
t3_state = load_safetensors("Thomcles/Chatterbox-TTS-Persian-Farsi/t3_fa.safetensors", device="cpu")
|
| 13 |
multilingual_model.t3.load_state_dict(t3_state)
|
| 14 |
multilingual_model.t3.to(device).eval()
|