ynhe commited on
Commit
e1210f3
1 Parent(s): 3c88ab5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def calculate_selected_score(df, selected_columns):
86
  return selected_quality_score
87
  # print(selected_semantic_score,selected_quality_score )
88
  selected_score = (selected_quality_score * QUALITY_WEIGHT + selected_semantic_score * SEMANTIC_WEIGHT) / (QUALITY_WEIGHT + SEMANTIC_WEIGHT)
89
- return selected_score.fillna(0)
90
 
91
  def get_final_score(df, selected_columns):
92
  normalize_df = get_normalized_df(df)
 
86
  return selected_quality_score
87
  # print(selected_semantic_score,selected_quality_score )
88
  selected_score = (selected_quality_score * QUALITY_WEIGHT + selected_semantic_score * SEMANTIC_WEIGHT) / (QUALITY_WEIGHT + SEMANTIC_WEIGHT)
89
+ return selected_score.fillna(0.0)
90
 
91
  def get_final_score(df, selected_columns):
92
  normalize_df = get_normalized_df(df)