Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline, T5Tokenizer, T5ForConditionalGeneration
|
|
3 |
import requests
|
4 |
|
5 |
# Configura tu token de Hugging Face directamente aquí
|
6 |
-
token = "
|
7 |
if not token:
|
8 |
raise ValueError("El token no se configuró. Asegúrate de ingresarlo correctamente.")
|
9 |
|
|
|
3 |
import requests
|
4 |
|
5 |
# Configura tu token de Hugging Face directamente aquí
|
6 |
+
token = os.getenv("HF_TOKEN")
|
7 |
if not token:
|
8 |
raise ValueError("El token no se configuró. Asegúrate de ingresarlo correctamente.")
|
9 |
|