Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
4 |
from huggingface_hub import login
|
5 |
|
6 |
# Iniciar sesi贸n en Hugging Face usando el secreto
|
7 |
-
huggingface_token = os.getenv('reparbot') #
|
8 |
if huggingface_token is None:
|
9 |
raise ValueError("El token de Hugging Face no est谩 configurado en las variables de entorno.")
|
10 |
login(huggingface_token)
|
|
|
4 |
from huggingface_hub import login
|
5 |
|
6 |
# Iniciar sesi贸n en Hugging Face usando el secreto
|
7 |
+
huggingface_token = os.getenv('reparbot') # Aseg煤rate de que el nombre coincida
|
8 |
if huggingface_token is None:
|
9 |
raise ValueError("El token de Hugging Face no est谩 configurado en las variables de entorno.")
|
10 |
login(huggingface_token)
|