Blakus commited on
Commit
871c067
·
verified ·
1 Parent(s): 5923399

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -13,6 +13,10 @@ from TTS.tts.models.xtts import Xtts
13
  from TTS.utils.generic_utils import get_user_data_dir
14
  from huggingface_hub import hf_hub_download
15
 
 
 
 
 
16
  # Configuración inicial
17
  os.environ["COQUI_TOS_AGREED"] = "1"
18
 
 
13
  from TTS.utils.generic_utils import get_user_data_dir
14
  from huggingface_hub import hf_hub_download
15
 
16
+ HF_TOKEN = os.environ.get("HF_TOKEN")
17
+ if not HF_TOKEN:
18
+ raise ValueError("No se ha proporcionado el token de Hugging Face. Por favor, configura la variable de entorno HF_TOKEN.")
19
+
20
  # Configuración inicial
21
  os.environ["COQUI_TOS_AGREED"] = "1"
22