Spaces:
Paused
Paused
Update app_web.py
Browse files- app_web.py +2 -2
app_web.py
CHANGED
|
@@ -246,7 +246,7 @@ def render_chat():
|
|
| 246 |
Please let me know if there's anything else I can assist you with today.")
|
| 247 |
return
|
| 248 |
|
| 249 |
-
if qcat_result.get("category") == "stata" and (qcat_result.get("sub-action")
|
| 250 |
# Ask clarification — store original query and question for context
|
| 251 |
st.session_state.unresolved_category = original_query_cat
|
| 252 |
|
|
@@ -289,7 +289,7 @@ def render_chat():
|
|
| 289 |
return
|
| 290 |
|
| 291 |
print(qcat_result.get("sub-action"))
|
| 292 |
-
if
|
| 293 |
selected_options = [st.session_state.stata_options.get(s) for s in qcat_result.get("sub-action", "unresolved")]
|
| 294 |
opts = {
|
| 295 |
"rewrite": True if "rewrite" in selected_options else False,
|
|
|
|
| 246 |
Please let me know if there's anything else I can assist you with today.")
|
| 247 |
return
|
| 248 |
|
| 249 |
+
if qcat_result.get("category") == "stata" and ("unresolved" in qcat_result.get("sub-action") or st.session_state.stata_options is None):
|
| 250 |
# Ask clarification — store original query and question for context
|
| 251 |
st.session_state.unresolved_category = original_query_cat
|
| 252 |
|
|
|
|
| 289 |
return
|
| 290 |
|
| 291 |
print(qcat_result.get("sub-action"))
|
| 292 |
+
if "unresolved" not in qcat_result.get("sub-action", "unresolved"):
|
| 293 |
selected_options = [st.session_state.stata_options.get(s) for s in qcat_result.get("sub-action", "unresolved")]
|
| 294 |
opts = {
|
| 295 |
"rewrite": True if "rewrite" in selected_options else False,
|