67Ayush87 commited on
Commit
4ea3c16
·
verified ·
1 Parent(s): 15a2774

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- os.environ["HF_TOKEN"]=os.getenv('Ayush')
25
- os.environ["HUGGINGFACEHUB_API_KEY"]=os.getenv('Ayush')
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)