Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def get_refs(res):
|
|
94 |
doc = res['documents'][i].to_dict()
|
95 |
ref_id = doc['meta']['ref_id']
|
96 |
if ref_id in ref_ids:
|
97 |
-
result_str += "Ref. " + str(ref_id) + " [" + doc['meta']['country'] + " " + doc['meta']['document_name'] + "]
|
98 |
return result_str
|
99 |
|
100 |
def run_query(input_text, country):
|
|
|
94 |
doc = res['documents'][i].to_dict()
|
95 |
ref_id = doc['meta']['ref_id']
|
96 |
if ref_id in ref_ids:
|
97 |
+
result_str += "**Ref. " + str(ref_id) + " [" + doc['meta']['country'] + " " + doc['meta']['document_name'] + "]:** " + "*'" + doc['content'] + "'*<br> <br>" # Add <br> for a line break
|
98 |
return result_str
|
99 |
|
100 |
def run_query(input_text, country):
|