abdelom commited on
Commit
bfdfa56
·
verified ·
1 Parent(s): c0676be

Update pages/2_Chatbot_AR.py

Browse files
Files changed (1) hide show
  1. pages/2_Chatbot_AR.py +2 -1
pages/2_Chatbot_AR.py CHANGED
@@ -199,9 +199,10 @@ prompt_template_ar = PromptTemplate(
199
  )
200
 
201
  # Configuration du LLM HuggingFace (AR)
202
- os.environ["HUGGINGFACEHUB_API"]
203
  llm_ar = HuggingFaceHub(
204
  repo_id="MBZUAI-Paris/Atlas-Chat-9B",
 
205
  model_kwargs={
206
  "temperature": 0.5,
207
  "max_length": 500
 
199
  )
200
 
201
  # Configuration du LLM HuggingFace (AR)
202
+ #os.environ["HUGGINGFACEHUB_API"]
203
  llm_ar = HuggingFaceHub(
204
  repo_id="MBZUAI-Paris/Atlas-Chat-9B",
205
+ huggingfacehub_api_token=os.environ["HUGGINGFACEHUB_API"],
206
  model_kwargs={
207
  "temperature": 0.5,
208
  "max_length": 500