AkhilTolani commited on
Commit
29af7a4
1 Parent(s): f0057e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-music-refined-74000", torch_dtype=torch_dtype, attn_implementation="sdpa").to(device)
20
 
21
- tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-xl")
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