Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Jan Mühlnikel
commited on
Commit
·
52c689e
1
Parent(s):
e832d96
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -60,10 +60,10 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
60 |
st.write(row_indices)
|
61 |
|
62 |
# Create resulting dataframes with top matches and their similarity scores
|
63 |
-
p1_df = filtered_df.
|
64 |
p1_df['similarity'] = top_values
|
65 |
|
66 |
-
p2_df = project_df.
|
67 |
p2_df['similarity'] = top_values
|
68 |
print("finished calc matches")
|
69 |
|
|
|
60 |
st.write(row_indices)
|
61 |
|
62 |
# Create resulting dataframes with top matches and their similarity scores
|
63 |
+
p1_df = filtered_df.loc[row_indices].copy()
|
64 |
p1_df['similarity'] = top_values
|
65 |
|
66 |
+
p2_df = project_df.loc[col_indices].copy()
|
67 |
p2_df['similarity'] = top_values
|
68 |
print("finished calc matches")
|
69 |
|