Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -396,7 +396,7 @@ class XylariaChat:
|
|
396 |
try:
|
397 |
self.client = InferenceClient(
|
398 |
model="mistralai/Mistral-Nemo-Instruct-2407",
|
399 |
-
|
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 |
|