Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Jan Mühlnikel
commited on
Commit
•
343d08b
1
Parent(s):
94abe53
adjusted error message for no results mpm
Browse files
__pycache__/similarity_page.cpython-310.pyc
CHANGED
Binary files a/__pycache__/similarity_page.cpython-310.pyc and b/__pycache__/similarity_page.cpython-310.pyc differ
|
|
modules/__pycache__/navbar.cpython-310.pyc
CHANGED
Binary files a/modules/__pycache__/navbar.cpython-310.pyc and b/modules/__pycache__/navbar.cpython-310.pyc differ
|
|
modules/multimatch_result_table.py
CHANGED
@@ -46,11 +46,7 @@ def show_multi_table(p1_df, p2_df):
|
|
46 |
#st.subheader(f"#{actual_ind}")
|
47 |
#st.caption(f"Similarity: {round(row_from_p1['similarity'].item(), 4) * 100}%")
|
48 |
match_df = pd.concat([row_from_p1, row_from_p2], ignore_index=True)
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
#AgGrid(match_df)
|
53 |
-
|
54 |
col1, col2 = st.columns([1, 12])
|
55 |
with col1:
|
56 |
|
|
|
46 |
#st.subheader(f"#{actual_ind}")
|
47 |
#st.caption(f"Similarity: {round(row_from_p1['similarity'].item(), 4) * 100}%")
|
48 |
match_df = pd.concat([row_from_p1, row_from_p2], ignore_index=True)
|
49 |
+
|
|
|
|
|
|
|
|
|
50 |
col1, col2 = st.columns([1, 12])
|
51 |
with col1:
|
52 |
|
similarity_page.py
CHANGED
@@ -220,10 +220,7 @@ def show_multi_matching_page():
|
|
220 |
|
221 |
TOP_X_PROJECTS = 30
|
222 |
filtered_df = filter_projects(projects_df, crs3_list, crs5_list, sdg_str, country_code_list, orga_code_list, query, model, embeddings, TOP_X_PROJECTS)
|
223 |
-
|
224 |
-
# Semantic Search
|
225 |
-
#searched_filtered_df = semantic_search.show_search(model, embeddings, sentences, filtered_df, TOP_X_PROJECTS)
|
226 |
-
if isinstance(filtered_df, pd.DataFrame):
|
227 |
# FIND MATCHES
|
228 |
## If only same country checkbox i sactivated
|
229 |
if filterd_country_only_checkbox:
|
@@ -241,7 +238,11 @@ def show_multi_matching_page():
|
|
241 |
show_multi_table(p1_df, p2_df)
|
242 |
del p1_df, p2_df
|
243 |
else:
|
244 |
-
st.write("
|
|
|
|
|
|
|
|
|
245 |
|
246 |
del crs3_list, crs5_list, sdg_str, filtered_df
|
247 |
gc.collect()
|
|
|
220 |
|
221 |
TOP_X_PROJECTS = 30
|
222 |
filtered_df = filter_projects(projects_df, crs3_list, crs5_list, sdg_str, country_code_list, orga_code_list, query, model, embeddings, TOP_X_PROJECTS)
|
223 |
+
if isinstance(filtered_df, pd.DataFrame) and len(filtered_df) != 0:
|
|
|
|
|
|
|
224 |
# FIND MATCHES
|
225 |
## If only same country checkbox i sactivated
|
226 |
if filterd_country_only_checkbox:
|
|
|
238 |
show_multi_table(p1_df, p2_df)
|
239 |
del p1_df, p2_df
|
240 |
else:
|
241 |
+
st.write("-----")
|
242 |
+
col1, col2, col3 = st.columns([1, 1, 1])
|
243 |
+
with col2:
|
244 |
+
st.write(" ")
|
245 |
+
st.markdown(" There are no results for the applied filter. Try another filter!")
|
246 |
|
247 |
del crs3_list, crs5_list, sdg_str, filtered_df
|
248 |
gc.collect()
|