Spaces:
Paused
Paused
Update app_web.py
Browse files- app_web.py +3 -1
app_web.py
CHANGED
|
@@ -232,8 +232,10 @@ def render_chat():
|
|
| 232 |
st.markdown(f"Please specify the value chain or investment area in {qinit_result.get('country', None)} for which you'd like to run a PERI analysis")
|
| 233 |
return
|
| 234 |
qcat_result = categorize_query(combined_cat, cfg, history)
|
|
|
|
| 235 |
except Exception:
|
| 236 |
-
|
|
|
|
| 237 |
|
| 238 |
print("unresolved: ", unresolved)
|
| 239 |
print("result: ", qinit_result)
|
|
|
|
| 232 |
st.markdown(f"Please specify the value chain or investment area in {qinit_result.get('country', None)} for which you'd like to run a PERI analysis")
|
| 233 |
return
|
| 234 |
qcat_result = categorize_query(combined_cat, cfg, history)
|
| 235 |
+
print("result: ", qinit_result)
|
| 236 |
except Exception:
|
| 237 |
+
qinit_result = {"country": None, "value_chain": None, "investment": None}
|
| 238 |
+
qcat_result = {"category": "pillar_1", "action": "unresolved"}
|
| 239 |
|
| 240 |
print("unresolved: ", unresolved)
|
| 241 |
print("result: ", qinit_result)
|