Nelly-43 commited on
Commit
f3738a9
·
verified ·
1 Parent(s): 61cd493

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +4 -7
app_web.py CHANGED
@@ -212,9 +212,8 @@ def render_chat():
212
  Please let me know if there's anything else I can assist you with today.")
213
  return
214
 
215
- if qcat_result.get("category") == "stata":
216
- if "awaiting_selection" not in st.session_state:
217
- st.session_state.awaiting_selection = True
218
 
219
  file_path = ""
220
  if qcat_result.get("action") == "do":
@@ -245,10 +244,8 @@ def render_chat():
245
 
246
  with st.chat_message("assistant"):
247
  selection = st.multiselect("Please let me know what you need help with:",
248
- options.keys())
249
- nxt_btn = st.button("Continue")
250
-
251
- if nxt_btn:
252
  if selection:
253
  choice_text = f"Help me {'and '.join(selection)}"
254
  st.session_state.messages.append({"role": "user", "content": choice_text})
 
212
  Please let me know if there's anything else I can assist you with today.")
213
  return
214
 
215
+ if qcat_result.get("category") == "stata":
216
+ st.chat_input("...", disabled=True)
 
217
 
218
  file_path = ""
219
  if qcat_result.get("action") == "do":
 
244
 
245
  with st.chat_message("assistant"):
246
  selection = st.multiselect("Please let me know what you need help with:",
247
+ options.keys())
248
+ if st.button("Continue"):
 
 
249
  if selection:
250
  choice_text = f"Help me {'and '.join(selection)}"
251
  st.session_state.messages.append({"role": "user", "content": choice_text})