Update xtts.py
Browse files
xtts.py
CHANGED
|
@@ -69,7 +69,9 @@ def get_conditioning_latents(audio_path, **others):
|
|
| 69 |
global model
|
| 70 |
speaker_wav, pt_file=download_sample(audio_path)
|
| 71 |
try:
|
| 72 |
-
if pt_file != None
|
|
|
|
|
|
|
| 73 |
(
|
| 74 |
gpt_cond_latent,
|
| 75 |
speaker_embedding,
|
|
|
|
| 69 |
global model
|
| 70 |
speaker_wav, pt_file=download_sample(audio_path)
|
| 71 |
try:
|
| 72 |
+
if pt_file != None:
|
| 73 |
+
if not os.path.exists(pt_file):
|
| 74 |
+
raise ValueError(f'{pt_file} not exists, regenerat it.')
|
| 75 |
(
|
| 76 |
gpt_cond_latent,
|
| 77 |
speaker_embedding,
|