Spaces:
Runtime error
Runtime error
AkhilTolani
commited on
Commit
•
29af7a4
1
Parent(s):
f0057e9
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ if torch.xpu.is_available():
|
|
16 |
device = "xpu"
|
17 |
|
18 |
torch_dtype = torch.bfloat16 if device != "cpu" else torch.float32
|
19 |
-
model = ParlerTTSForConditionalGeneration.from_pretrained("AkhilTolani/parler-tts-
|
20 |
|
21 |
-
tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-
|
22 |
|
23 |
def generate_audio(prompt, description, seed, temperature, max_length, do_sample):
|
24 |
# Set the seed for reproducibility
|
|
|
16 |
device = "xpu"
|
17 |
|
18 |
torch_dtype = torch.bfloat16 if device != "cpu" else torch.float32
|
19 |
+
model = ParlerTTSForConditionalGeneration.from_pretrained("AkhilTolani/parler-tts-finetune-vocals-only-large-18720-steps", torch_dtype=torch_dtype, attn_implementation="sdpa").to(device)
|
20 |
|
21 |
+
tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-xxl")
|
22 |
|
23 |
def generate_audio(prompt, description, seed, temperature, max_length, do_sample):
|
24 |
# Set the seed for reproducibility
|