iamrobotbear commited on
Commit
253ce6a
·
1 Parent(s): 4c0fb4c

percentages

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -104,13 +104,15 @@ def process_images_and_statements(image):
104
  itm_score_statement = compute_itm_score(image, statement)
105
 
106
  # Combine the two scores using a weighted average
107
- final_score = (weight_textual_similarity * textual_similarity_score) + (weight_statement * itm_score_statement)
 
 
108
 
109
  # Append the result to the DataFrame
110
  results_df = results_df.append({
111
  'Statement': statement,
112
- 'Textual Similarity Score': textual_similarity_score,
113
- 'ITM Score': itm_score_statement,
114
  'Final Combined Score': final_score
115
  }, ignore_index=True)
116
 
 
104
  itm_score_statement = compute_itm_score(image, statement)
105
 
106
  # Combine the two scores using a weighted average
107
+ #final_score = (weight_textual_similarity * textual_similarity_score) + (weight_statement * itm_score_statement)
108
+ final_score = ((weight_textual_similarity * textual_similarity_score) +
109
+ (weight_statement * itm_score_statement)) * 100 # Multiply by 100
110
 
111
  # Append the result to the DataFrame
112
  results_df = results_df.append({
113
  'Statement': statement,
114
+ 'Textual Similarity Score': textual_similarity_score * 100, # Multiply by 100
115
+ 'ITM Score': itm_score_statement * 100, # Multiply by 100
116
  'Final Combined Score': final_score
117
  }, ignore_index=True)
118