Update app.py
Browse files
app.py
CHANGED
@@ -154,14 +154,15 @@ def refresh_chat():
|
|
154 |
|
155 |
# If this is the last assistant message, add the "Continue" button
|
156 |
# if idx == len(st.session_state.chat_history) - 1 and message['role'] == 'assistant':
|
157 |
-
if st.button("Continue"):
|
158 |
-
st.session_state.need_continue = True
|
159 |
|
160 |
refresh_chat()
|
161 |
|
162 |
# User input area (moved to the bottom)
|
163 |
st.session_state.user_text = st.chat_input(placeholder="Enter your text here.")
|
164 |
|
|
|
|
|
|
|
165 |
# When the user enters new text
|
166 |
if st.session_state.user_text:
|
167 |
# Display the user's message
|
|
|
154 |
|
155 |
# If this is the last assistant message, add the "Continue" button
|
156 |
# if idx == len(st.session_state.chat_history) - 1 and message['role'] == 'assistant':
|
|
|
|
|
157 |
|
158 |
refresh_chat()
|
159 |
|
160 |
# User input area (moved to the bottom)
|
161 |
st.session_state.user_text = st.chat_input(placeholder="Enter your text here.")
|
162 |
|
163 |
+
if st.button("Continue"):
|
164 |
+
st.session_state.need_continue = True
|
165 |
+
|
166 |
# When the user enters new text
|
167 |
if st.session_state.user_text:
|
168 |
# Display the user's message
|