bradley6597
commited on
Fixed map warning error
Browse files
app.py
CHANGED
@@ -102,9 +102,9 @@ def search_index(search_text, sd, ks, sort_by, max_results, user_num, search_tit
|
|
102 |
output = [x for o in output for x in o if type(x) is not float]
|
103 |
|
104 |
load_more_visible = False
|
|
|
105 |
if 'map' in search_text:
|
106 |
-
|
107 |
-
|
108 |
if len(output) > 0:
|
109 |
|
110 |
output_df = (pd.DataFrame(output)
|
@@ -171,7 +171,8 @@ def search_index(search_text, sd, ks, sort_by, max_results, user_num, search_tit
|
|
171 |
final_df = pd.DataFrame(['<h3>No Results Found :(</h3>'])
|
172 |
|
173 |
|
174 |
-
return('<center>' +
|
|
|
175 |
final_df.to_html(escape = False, render_links = True, index = False, header = False) +
|
176 |
'</center>',
|
177 |
gr.update(label = total_returned, value = max_results),
|
|
|
102 |
output = [x for o in output for x in o if type(x) is not float]
|
103 |
|
104 |
load_more_visible = False
|
105 |
+
extra_info = ''
|
106 |
if 'map' in search_text:
|
107 |
+
extra_info = '<strong>If real-world maps needed please check it is in the folder: Illustrations Now > Maps - Using the New Guidance (2024)</strong><br>'
|
|
|
108 |
if len(output) > 0:
|
109 |
|
110 |
output_df = (pd.DataFrame(output)
|
|
|
171 |
final_df = pd.DataFrame(['<h3>No Results Found :(</h3>'])
|
172 |
|
173 |
|
174 |
+
return('<center>' +
|
175 |
+
extra_info +
|
176 |
final_df.to_html(escape = False, render_links = True, index = False, header = False) +
|
177 |
'</center>',
|
178 |
gr.update(label = total_returned, value = max_results),
|