schuler commited on
Commit
1473469
·
verified ·
1 Parent(s): 8c42253

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- if st.button("Continue"):
148
- st.session_state.need_continue = True
 
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.")