Update app.py
Browse files
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)
|