ynhe commited on
Commit
2df7dea
1 Parent(s): 78d92e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def get_final_score_quality(df, selected_columns):
130
  else:
131
  df.insert(1, 'Quality Score', quality_score)
132
  # selected_score = normalize_df[selected_columns].sum(axis=1) / len(selected_columns)
133
- selected_score = df[selected_columns].sum(axis=1)/sum([DIM_WEIGHT[i] for i in selected_columns])
134
  if 'Selected Score' in df:
135
  df['Selected Score'] = selected_score
136
  else:
 
130
  else:
131
  df.insert(1, 'Quality Score', quality_score)
132
  # selected_score = normalize_df[selected_columns].sum(axis=1) / len(selected_columns)
133
+ selected_score = normalize_df[selected_columns].sum(axis=1)/sum([DIM_WEIGHT[i] for i in selected_columns])
134
  if 'Selected Score' in df:
135
  df['Selected Score'] = selected_score
136
  else: