Afaf commited on
Commit
989a249
·
verified ·
1 Parent(s): 77bbb72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -41,6 +41,7 @@ model = Xtts.init_from_config(config)
41
  model.load_checkpoint(config, checkpoint_path=model_path, use_deepspeed=False, vocab_path=vocab_path, eval=True)
42
  model.to(device)
43
 
 
44
  def infer_EGTTS(text: str, speaker_audio_path: str, temperature: float = 0.75):
45
  print("Computing speaker latents...")
46
  gpt_cond_latent, speaker_embedding = model.get_conditioning_latents(audio_path=[speaker_audio_path])
 
41
  model.load_checkpoint(config, checkpoint_path=model_path, use_deepspeed=False, vocab_path=vocab_path, eval=True)
42
  model.to(device)
43
 
44
+ @spaces.GPU
45
  def infer_EGTTS(text: str, speaker_audio_path: str, temperature: float = 0.75):
46
  print("Computing speaker latents...")
47
  gpt_cond_latent, speaker_embedding = model.get_conditioning_latents(audio_path=[speaker_audio_path])