Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Jan Mühlnikel
commited on
Commit
·
07ff467
1
Parent(s):
7529755
experiment
Browse files- functions/calc_matches.py +0 -1
- similarity_page.py +2 -2
functions/calc_matches.py
CHANGED
|
@@ -80,7 +80,6 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
| 80 |
st.write(top_filtered_df_indices)
|
| 81 |
|
| 82 |
# Create resulting dataframes with top matches and their similarity scores
|
| 83 |
-
st.write(top_indices)
|
| 84 |
p1_df = filtered_df.loc[top_filtered_df_indices].copy()
|
| 85 |
p1_df['similarity'] = top_values
|
| 86 |
|
|
|
|
| 80 |
st.write(top_filtered_df_indices)
|
| 81 |
|
| 82 |
# Create resulting dataframes with top matches and their similarity scores
|
|
|
|
| 83 |
p1_df = filtered_df.loc[top_filtered_df_indices].copy()
|
| 84 |
p1_df['similarity'] = top_values
|
| 85 |
|
similarity_page.py
CHANGED
|
@@ -272,10 +272,10 @@ def show_multi_matching_page():
|
|
| 272 |
## if show only different orgas checkbox is activated
|
| 273 |
if different_orga_checkbox:
|
| 274 |
with st.spinner('Please wait...'):
|
| 275 |
-
p1_df, p2_df = calc_matches(filtered_df,
|
| 276 |
else:
|
| 277 |
with st.spinner('Please wait...'):
|
| 278 |
-
p1_df, p2_df = calc_matches(filtered_df,
|
| 279 |
|
| 280 |
# SHOW THE RESULT
|
| 281 |
show_multi_table(p1_df, p2_df)
|
|
|
|
| 272 |
## if show only different orgas checkbox is activated
|
| 273 |
if different_orga_checkbox:
|
| 274 |
with st.spinner('Please wait...'):
|
| 275 |
+
p1_df, p2_df = calc_matches(filtered_df, projects_df, nonsameorgas_sim_matrix, TOP_X_PROJECTS)
|
| 276 |
else:
|
| 277 |
with st.spinner('Please wait...'):
|
| 278 |
+
p1_df, p2_df = calc_matches(filtered_df, projects_df, sim_matrix, TOP_X_PROJECTS)
|
| 279 |
|
| 280 |
# SHOW THE RESULT
|
| 281 |
show_multi_table(p1_df, p2_df)
|