Spaces:
Running
Running
Update app.py
Browse files
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 =
|
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:
|