Spaces:
Sleeping
Sleeping
Nimesh Naik
commited on
Commit
·
eb67530
1
Parent(s):
9534346
model name change
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ import os
|
|
| 10 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 11 |
|
| 12 |
# Load Indic Parler-TTS model and tokenizer
|
| 13 |
-
model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts
|
| 14 |
-
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts
|
| 15 |
|
| 16 |
# Supported languages (Indic Parler-TTS officially supports these)
|
| 17 |
languages = [
|
|
|
|
| 10 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 11 |
|
| 12 |
# Load Indic Parler-TTS model and tokenizer
|
| 13 |
+
model = ParlerTTSForConditionalGeneration.from_pretrained("ai4bharat/indic-parler-tts").to(device)
|
| 14 |
+
tokenizer = AutoTokenizer.from_pretrained("ai4bharat/indic-parler-tts")
|
| 15 |
|
| 16 |
# Supported languages (Indic Parler-TTS officially supports these)
|
| 17 |
languages = [
|