Spaces:
Paused
Paused
Commit
·
5f4fb72
1
Parent(s):
42cc103
fix
Browse files
app.py
CHANGED
|
@@ -178,12 +178,13 @@ Câu trả lời tôi muốn nhận được: Đối với hệ đại trà ngo
|
|
| 178 |
}
|
| 179 |
]
|
| 180 |
history = retrieve_conversation(conversation_id)
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
|
|
|
| 187 |
if cid:
|
| 188 |
messages.append({
|
| 189 |
"role": "user",
|
|
|
|
| 178 |
}
|
| 179 |
]
|
| 180 |
history = retrieve_conversation(conversation_id)
|
| 181 |
+
if len(history) != 0:
|
| 182 |
+
messages.append({
|
| 183 |
+
"role": "user",
|
| 184 |
+
"content": history[-1]["q"]})
|
| 185 |
+
messages.append({
|
| 186 |
+
"role": "assistant",
|
| 187 |
+
"content": history[-1]["a"] })
|
| 188 |
if cid:
|
| 189 |
messages.append({
|
| 190 |
"role": "user",
|