Spaces:
Sleeping
Sleeping
Update app_web.py
Browse files237 unmodified lines238239240241242243244245246247248249250251252253237 unmodified linesqcat_result = {"category": "pillar_1", "action": "unresolved"}pillar_dict = {"pillar_1":f"would like to understand whether {qinit_result.get("value_chain")} aligns with the government's political incentives.","pillar_2":f"would like to understand to what degree decisions are impacted by the lobbying of particular groups or by elite influence","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",}st.session_state.unresolved_category = original_query_catst.session_state.unresolved_category_question = f"Please let me know if you {' and '.join([pillar_dict[c] for c in qcat_result.get("category")])}."st.session_state.resolution_rounds += 1resolution_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")])}."st.session_state.messages.append({"role": "assistant", "content": resolution_msg})with st.chat_message("assistant"):237 unmodified lines238239240241242243244245246247248249250251252253237 unmodified linesqcat_result = {"category": "pillar_1", "action": "unresolved"}pillar_dict = {"pillar_1":f"would like to understand whether {qinit_result.get('value_chain')} aligns with the government's political incentives.","pillar_2":f"would like to understand to what degree decisions are impacted by the lobbying of particular groups or by elite influence","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",}st.session_state.unresolved_category = original_query_catst.session_state.unresolved_category_question = f"Please let me know if you {' and '.join([pillar_dict[c] for c in qcat_result.get('category')])}."st.session_state.resolution_rounds += 1resolution_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')])}."st.session_state.messages.append({"role": "assistant", "content": resolution_msg})with st.chat_message("assistant"):
app_web.py+4-4