Nelly-43 commited on
Commit
6e6965b
·
verified ·
1 Parent(s): e860365

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +1 -1
app_web.py CHANGED
@@ -240,7 +240,7 @@ def render_chat():
240
 
241
  esc_char = "\n"
242
  esc_char1 = "\n -"
243
- if qinit_result.get("country", None)[0]==None:
244
  resolution_msg = f"It seems there is no country specified for the analysis. Currently the PERI framework supports analysis for the countries listed below:\n\n -{'esc_char1'.join(APPROVED_OPTIONS.get('countries'))}\n\n We are also continuously \
245
  working to expand the framework and you can submit a form if the country you would like to run the analysis on is not included. In the meantime please let me know if you would like to run the anlysis for one of the included countries."
246
 
 
240
 
241
  esc_char = "\n"
242
  esc_char1 = "\n -"
243
+ if not isinstance(qinit_result.get("country", None), list) and qinit_result.get("country", None)==None:
244
  resolution_msg = f"It seems there is no country specified for the analysis. Currently the PERI framework supports analysis for the countries listed below:\n\n -{'esc_char1'.join(APPROVED_OPTIONS.get('countries'))}\n\n We are also continuously \
245
  working to expand the framework and you can submit a form if the country you would like to run the analysis on is not included. In the meantime please let me know if you would like to run the anlysis for one of the included countries."
246