Spaces:
Paused
Paused
Update app_web.py
Browse files- app_web.py +4 -4
app_web.py
CHANGED
|
@@ -239,8 +239,8 @@ def render_chat():
|
|
| 239 |
review the files and reach out to you should we need any more information. \
|
| 240 |
Please let me know if there's anything else I can assist you with today.")
|
| 241 |
return
|
| 242 |
-
|
| 243 |
-
if qcat_result.get("category") == "stata":
|
| 244 |
print("stata")
|
| 245 |
# Ask clarification — store original query and question for context
|
| 246 |
st.session_state.unresolved_category = original_query_cat
|
|
@@ -281,8 +281,8 @@ def render_chat():
|
|
| 281 |
st.markdown(resolution_msg)
|
| 282 |
return
|
| 283 |
|
| 284 |
-
selection = qcat_result.get("sub-action",
|
| 285 |
-
|
| 286 |
if selection != "unresolved" or isinstance(selection, list):
|
| 287 |
qu_enabled = False
|
| 288 |
selected_options = [options.get(s) for s in selection]
|
|
|
|
| 239 |
review the files and reach out to you should we need any more information. \
|
| 240 |
Please let me know if there's anything else I can assist you with today.")
|
| 241 |
return
|
| 242 |
+
|
| 243 |
+
if qcat_result.get("category") == "stata" and (qcat_result.get("sub-action")=="unresolved" or not isinstance(qcat_result.get("sub-action"), list)):
|
| 244 |
print("stata")
|
| 245 |
# Ask clarification — store original query and question for context
|
| 246 |
st.session_state.unresolved_category = original_query_cat
|
|
|
|
| 281 |
st.markdown(resolution_msg)
|
| 282 |
return
|
| 283 |
|
| 284 |
+
selection = qcat_result.get("sub-action", "unresolved")
|
| 285 |
+
|
| 286 |
if selection != "unresolved" or isinstance(selection, list):
|
| 287 |
qu_enabled = False
|
| 288 |
selected_options = [options.get(s) for s in selection]
|