Update app.py
Browse files
app.py
CHANGED
|
@@ -150,7 +150,7 @@ def chat_with_model(prompt, system_prompt, chatbot_display, internal_history,lan
|
|
| 150 |
internal_history.append({"role": "assistant", "content": response_text})
|
| 151 |
|
| 152 |
# 7. Cập nhật lịch sử hiển thị (gr.Chatbot)
|
| 153 |
-
chatbot_display.append([prompt, translated])
|
| 154 |
|
| 155 |
# 8. Trả về cả hai để cập nhật UI
|
| 156 |
# (chuỗi rỗng "" để xóa nội dung trong ô prompt_box)
|
|
|
|
| 150 |
internal_history.append({"role": "assistant", "content": response_text})
|
| 151 |
|
| 152 |
# 7. Cập nhật lịch sử hiển thị (gr.Chatbot)
|
| 153 |
+
chatbot_display.append([prompt, translated,response_text])
|
| 154 |
|
| 155 |
# 8. Trả về cả hai để cập nhật UI
|
| 156 |
# (chuỗi rỗng "" để xóa nội dung trong ô prompt_box)
|