Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,6 @@ 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 |
-
@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])
|
|
|
|
| 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])
|