Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,12 +21,13 @@ from langchain_core.messages import HumanMessage, SystemMessage
|
|
21 |
|
22 |
# Setup API key (replace with your key or use st.secrets)
|
23 |
import os
|
24 |
-
|
25 |
-
|
26 |
|
27 |
# Load model
|
28 |
llm = HuggingFaceHub(
|
29 |
repo_id="meta-llama/Llama-3.2-3B-Instruct",
|
|
|
30 |
model_kwargs={"temperature": 0.6, "max_new_tokens": 100}
|
31 |
)
|
32 |
chat_model = ChatHuggingFace(llm=llm)
|
|
|
21 |
|
22 |
# Setup API key (replace with your key or use st.secrets)
|
23 |
import os
|
24 |
+
|
25 |
+
HF_TOKEN = "Ayush"
|
26 |
|
27 |
# Load model
|
28 |
llm = HuggingFaceHub(
|
29 |
repo_id="meta-llama/Llama-3.2-3B-Instruct",
|
30 |
+
huggingfacehub_api_token=HF_TOKEN,
|
31 |
model_kwargs={"temperature": 0.6, "max_new_tokens": 100}
|
32 |
)
|
33 |
chat_model = ChatHuggingFace(llm=llm)
|