Jan Mühlnikel
commited on
Commit
·
f5870ba
1
Parent(s):
3089c42
added spinner
Browse files
modules/singlematch_result_table.py
CHANGED
@@ -25,6 +25,7 @@ def show_single_table(selected_project_index, projects_df, result_df):
|
|
25 |
lambda x: [""] if x is None else (str(x).split(";")[:-1] if str(x).endswith(";") else str(x).split(";"))
|
26 |
)
|
27 |
|
|
|
28 |
st.dataframe(
|
29 |
sel_p_row[["iati_id", "title_main", "orga_abbreviation", "client", "description_main", "country_name", "country_flag", "sdg_list", "crs_3_code_list", "crs_5_code_list"]],
|
30 |
use_container_width = True,
|
@@ -96,6 +97,7 @@ def show_single_table(selected_project_index, projects_df, result_df):
|
|
96 |
else:
|
97 |
result_df = result_df.reset_index(drop=True)
|
98 |
st.write("----------------------")
|
|
|
99 |
st.dataframe(
|
100 |
result_df[["similarity", "iati_id", "title_main", "orga_abbreviation", "client", "description_main", "country_name", "country_flag", "sdg_list", "crs_3_code_list", "crs_5_code_list"]],
|
101 |
use_container_width = True,
|
|
|
25 |
lambda x: [""] if x is None else (str(x).split(";")[:-1] if str(x).endswith(";") else str(x).split(";"))
|
26 |
)
|
27 |
|
28 |
+
st.subheader("Reference Project")
|
29 |
st.dataframe(
|
30 |
sel_p_row[["iati_id", "title_main", "orga_abbreviation", "client", "description_main", "country_name", "country_flag", "sdg_list", "crs_3_code_list", "crs_5_code_list"]],
|
31 |
use_container_width = True,
|
|
|
97 |
else:
|
98 |
result_df = result_df.reset_index(drop=True)
|
99 |
st.write("----------------------")
|
100 |
+
st.subheader("Top 10 Similar Projects")
|
101 |
st.dataframe(
|
102 |
result_df[["similarity", "iati_id", "title_main", "orga_abbreviation", "client", "description_main", "country_name", "country_flag", "sdg_list", "crs_3_code_list", "crs_5_code_list"]],
|
103 |
use_container_width = True,
|