Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from transformers import VitsModel, AutoTokenizer
|
|
| 6 |
import re
|
| 7 |
|
| 8 |
# Load fine-tuned model from Hugging Face Hub or local path
|
| 9 |
-
model = VitsModel.from_pretrained("
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained("saleolow/somali-mms-tts")
|
| 11 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 12 |
model.to(device)
|
|
|
|
| 6 |
import re
|
| 7 |
|
| 8 |
# Load fine-tuned model from Hugging Face Hub or local path
|
| 9 |
+
model = VitsModel.from_pretrained("Somali-tts/somali_tts_model")
|
| 10 |
tokenizer = AutoTokenizer.from_pretrained("saleolow/somali-mms-tts")
|
| 11 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 12 |
model.to(device)
|