Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -114,9 +114,7 @@ If the user is engaging in discussion, try to steer them towards getting in touc
|
|
| 114 |
|
| 115 |
def chat(self, message, history):
|
| 116 |
messages = [{"role": "system", "content": self.system_prompt()}]
|
| 117 |
-
|
| 118 |
-
messages.append({"role": "user", "content": user_msg})
|
| 119 |
-
messages.append({"role": "assistant", "content": assistant_msg})
|
| 120 |
messages.append({"role": "user", "content": message})
|
| 121 |
done = False
|
| 122 |
while not done:
|
|
|
|
| 114 |
|
| 115 |
def chat(self, message, history):
|
| 116 |
messages = [{"role": "system", "content": self.system_prompt()}]
|
| 117 |
+
messages.extend(history)
|
|
|
|
|
|
|
| 118 |
messages.append({"role": "user", "content": message})
|
| 119 |
done = False
|
| 120 |
while not done:
|