Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,9 @@
|
|
| 1 |
import os
|
| 2 |
-
from dotenv import load_dotenv
|
| 3 |
import gradio as gr
|
| 4 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 5 |
from huggingface_hub import login
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
load_dotenv()
|
| 9 |
-
|
| 10 |
-
# Iniciar sesi贸n en Hugging Face usando la variable de entorno
|
| 11 |
huggingface_token = os.getenv('HUGGINGFACE_TOKEN')
|
| 12 |
if huggingface_token is None:
|
| 13 |
raise ValueError("El token de Hugging Face no est谩 configurado en las variables de entorno.")
|
|
|
|
| 1 |
import os
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
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('HUGGINGFACE_TOKEN')
|
| 8 |
if huggingface_token is None:
|
| 9 |
raise ValueError("El token de Hugging Face no est谩 configurado en las variables de entorno.")
|