Update app.py
Browse files
app.py
CHANGED
@@ -143,9 +143,10 @@ with chat_interface:
|
|
143 |
st.markdown(message['content'])
|
144 |
|
145 |
# If this is the last assistant message, add the "Continue" button
|
146 |
-
if idx == len(st.session_state.chat_history) - 1 and message['role'] == 'assistant':
|
147 |
-
|
148 |
-
|
|
|
149 |
|
150 |
# User input area (moved to the bottom)
|
151 |
st.session_state.user_text = st.chat_input(placeholder="Enter your text here.")
|
|
|
143 |
st.markdown(message['content'])
|
144 |
|
145 |
# If this is the last assistant message, add the "Continue" button
|
146 |
+
# if idx == len(st.session_state.chat_history) - 1 and message['role'] == 'assistant':
|
147 |
+
|
148 |
+
if st.button("Continue"):
|
149 |
+
st.session_state.need_continue = True
|
150 |
|
151 |
# User input area (moved to the bottom)
|
152 |
st.session_state.user_text = st.chat_input(placeholder="Enter your text here.")
|