Reality123b commited on
Commit
d8c3f8c
·
verified ·
1 Parent(s): c34e336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -396,7 +396,7 @@ class XylariaChat:
396
  try:
397
  self.client = InferenceClient(
398
  model="mistralai/Mistral-Nemo-Instruct-2407",
399
- api_key=self.hf_token
400
  )
401
  except Exception as e:
402
  print(f"Error resetting API client: {e}")
@@ -724,8 +724,8 @@ class XylariaChat:
724
 
725
 
726
 
727
- self.conversation_history.append(ChatMessage(role="user", content=message).to_dict())
728
- self.conversation_history.append(ChatMessage(role="assistant", content=full_response).to_dict())
729
 
730
  yield "", updated_history, None, None, None
731
 
 
396
  try:
397
  self.client = InferenceClient(
398
  model="mistralai/Mistral-Nemo-Instruct-2407",
399
+ token=self.hf_token
400
  )
401
  except Exception as e:
402
  print(f"Error resetting API client: {e}")
 
724
 
725
 
726
 
727
+ #self.conversation_history.append(ChatMessage(role="user", content=message).to_dict())
728
+ #self.conversation_history.append(ChatMessage(role="assistant", content=full_response).to_dict())
729
 
730
  yield "", updated_history, None, None, None
731