Spaces:
Sleeping
Sleeping
JaphetHernandez
commited on
Commit
•
3472573
1
Parent(s):
5e5f699
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,11 @@ from langchain import PromptTemplate, LLMChain
|
|
5 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
6 |
from huggingface_hub import login
|
7 |
|
8 |
-
|
9 |
-
fireworks_token = st.secrets["HUGGINGFACE_FIREWORKS_APIKEY"]
|
10 |
-
|
|
|
|
|
11 |
|
12 |
|
13 |
# Configurar modelo Llama 3.1
|
|
|
5 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
6 |
from huggingface_hub import login
|
7 |
|
8 |
+
try:
|
9 |
+
fireworks_token = st.secrets["HUGGINGFACE_FIREWORKS_APIKEY"]
|
10 |
+
st.write("Token encontrado:", fireworks_token)
|
11 |
+
except KeyError:
|
12 |
+
st.error("La clave 'HUGGINGFACE_FIREWORKS_APIKEY' no está configurada en secrets.toml.")
|
13 |
|
14 |
|
15 |
# Configurar modelo Llama 3.1
|