Spaces:
Sleeping
Sleeping
Update app_web.py
Browse files- app_web.py +4 -4
app_web.py
CHANGED
|
@@ -238,16 +238,16 @@ def render_chat():
|
|
| 238 |
qcat_result = {"category": "pillar_1", "action": "unresolved"}
|
| 239 |
|
| 240 |
pillar_dict = {
|
| 241 |
-
"pillar_1":f"would like to understand whether {qinit_result.get(
|
| 242 |
"pillar_2":f"would like to understand to what degree decisions are impacted by the lobbying of particular groups or by elite influence",
|
| 243 |
-
"pillar_3":f"would like to understand if {qinit_result.get(
|
| 244 |
|
| 245 |
}
|
| 246 |
|
| 247 |
st.session_state.unresolved_category = original_query_cat
|
| 248 |
-
st.session_state.unresolved_category_question = f"Please let me know if you {' and '.join([pillar_dict[c] for c in qcat_result.get(
|
| 249 |
st.session_state.resolution_rounds += 1
|
| 250 |
-
resolution_msg = f"**Before I search, could you clarify?** Please let me know if you {' and '.join([pillar_dict[c] for c in qcat_result.get(
|
| 251 |
st.session_state.messages.append({"role": "assistant", "content": resolution_msg})
|
| 252 |
|
| 253 |
with st.chat_message("assistant"):
|
|
|
|
| 238 |
qcat_result = {"category": "pillar_1", "action": "unresolved"}
|
| 239 |
|
| 240 |
pillar_dict = {
|
| 241 |
+
"pillar_1":f"would like to understand whether {qinit_result.get('value_chain')} aligns with the government's political incentives.",
|
| 242 |
"pillar_2":f"would like to understand to what degree decisions are impacted by the lobbying of particular groups or by elite influence",
|
| 243 |
+
"pillar_3":f"would like to understand if {qinit_result.get('value_chain')} and/or investing in {qinit_result.get('investment')} can be feasibly implemented given the broader institutional and policy environment",
|
| 244 |
|
| 245 |
}
|
| 246 |
|
| 247 |
st.session_state.unresolved_category = original_query_cat
|
| 248 |
+
st.session_state.unresolved_category_question = f"Please let me know if you {' and '.join([pillar_dict[c] for c in qcat_result.get('category')])}."
|
| 249 |
st.session_state.resolution_rounds += 1
|
| 250 |
+
resolution_msg = f"**Before I search, could you clarify?** Please let me know if you {' and '.join([pillar_dict[c] for c in qcat_result.get('category')])}."
|
| 251 |
st.session_state.messages.append({"role": "assistant", "content": resolution_msg})
|
| 252 |
|
| 253 |
with st.chat_message("assistant"):
|