Jan Mühlnikel commited on
Commit
829588f
·
1 Parent(s): 057b171

multiplied similarities by 100

Browse files
Files changed (1) hide show
  1. modules/singlematch_result_table.py +1 -12
modules/singlematch_result_table.py CHANGED
@@ -97,18 +97,7 @@ def show_single_table(selected_project_index, projects_df, result_df):
97
  else:
98
  result_df = result_df.reset_index(drop=True)
99
  result_df['similarity'] = (result_df['similarity'] * 100).round(4)
100
- def colorize(val):
101
- if val > 80:
102
- color = 'green'
103
- elif val > 50:
104
- color = 'orange'
105
- else:
106
- color = 'red'
107
- return f'background-color: {color}'
108
-
109
- # Apply the styling
110
- result_df = result_df.style.applymap(colorize, subset=['similarity'])
111
-
112
  st.write("----------------------")
113
  st.subheader("Top 10 Similar Projects")
114
  st.dataframe(
 
97
  else:
98
  result_df = result_df.reset_index(drop=True)
99
  result_df['similarity'] = (result_df['similarity'] * 100).round(4)
100
+
 
 
 
 
 
 
 
 
 
 
 
101
  st.write("----------------------")
102
  st.subheader("Top 10 Similar Projects")
103
  st.dataframe(