Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -494,7 +494,7 @@ def qa_dict():
|
|
494 |
return qa_dict
|
495 |
qa_dict = qa_dict()
|
496 |
|
497 |
-
st.title("General
|
498 |
|
499 |
# Khởi tạo lịch sử tin nhắn
|
500 |
if "messages" not in st.session_state:
|
@@ -525,4 +525,4 @@ if prompt := st.chat_input("What is up?"):
|
|
525 |
st.markdown(response)
|
526 |
|
527 |
# Thêm câu trả lời của bot vào lịch sử
|
528 |
-
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
|
494 |
return qa_dict
|
495 |
qa_dict = qa_dict()
|
496 |
|
497 |
+
st.title("General Edu Chatbot")
|
498 |
|
499 |
# Khởi tạo lịch sử tin nhắn
|
500 |
if "messages" not in st.session_state:
|
|
|
525 |
st.markdown(response)
|
526 |
|
527 |
# Thêm câu trả lời của bot vào lịch sử
|
528 |
+
st.session_state.messages.append({"role": "assistant", "content": response})
|