mtyrrell commited on
Commit
d10be35
1 Parent(s): 08b14ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def get_docs(input_query, country = None):
60
  # Break out the key fields and convert to pandas for filtering
61
  docs = [{**x.meta,"score":x.score,"content":x.content} for x in docs]
62
  df_docs = pd.DataFrame(docs)
63
- if country:
64
  df_docs = df_docs.query('country in @country')
65
  # Take the top 10
66
  df_docs = df_docs.head(10)
 
60
  # Break out the key fields and convert to pandas for filtering
61
  docs = [{**x.meta,"score":x.score,"content":x.content} for x in docs]
62
  df_docs = pd.DataFrame(docs)
63
+ if country != 'ALL':
64
  df_docs = df_docs.query('country in @country')
65
  # Take the top 10
66
  df_docs = df_docs.head(10)