Update app.py
Browse files
app.py
CHANGED
@@ -100,11 +100,12 @@ def handle_userinput(user_question):
|
|
100 |
|
101 |
# λν 체μΈμ μ¬μ©νμ¬ μ¬μ©μ μ§λ¬Έμ λν μλ΅μ μμ±ν©λλ€.
|
102 |
st.session_state.conversation = {'question': user_question}
|
103 |
-
|
|
|
104 |
#response = st.session_state.conversation
|
105 |
|
106 |
-
if 'chat_history' in
|
107 |
-
st.session_state.chat_history =
|
108 |
for i, message in enumerate(st.session_state.chat_history):
|
109 |
if i % 2 == 0:
|
110 |
st.write(user_template.replace("{{MSG}}", message.content), unsafe_allow_html=True)
|
|
|
100 |
|
101 |
# λν 체μΈμ μ¬μ©νμ¬ μ¬μ©μ μ§λ¬Έμ λν μλ΅μ μμ±ν©λλ€.
|
102 |
st.session_state.conversation = {'question': user_question}
|
103 |
+
|
104 |
+
#st.session_state.chat_history = response['chat_history']
|
105 |
#response = st.session_state.conversation
|
106 |
|
107 |
+
if 'chat_history' in st.session_state.conversation:
|
108 |
+
st.session_state.chat_history = st.session_state.conversation['chat_history']
|
109 |
for i, message in enumerate(st.session_state.chat_history):
|
110 |
if i % 2 == 0:
|
111 |
st.write(user_template.replace("{{MSG}}", message.content), unsafe_allow_html=True)
|