m7mdal7aj commited on
Commit
2abf95b
1 Parent(s): 636ef92

Update my_model/tabs/finetuning_evaluation.py

Browse files
my_model/tabs/finetuning_evaluation.py CHANGED
@@ -80,9 +80,10 @@ class KBVQAEvaluator:
80
  with pd.ExcelWriter('evaluation_results_final.xlsx', engine='openpyxl', mode='w') as writer:
81
  scores_df.to_excel(writer, sheet_name='Scores', index=False)
82
 
83
- def run_evaluator(self):
84
- evaluator = KBVQAEvaluator('evaluation_results_final.xlsx', use_fuzzy=False)
85
- evaluator.evaluate()
86
- st.table(self.vqa_scores)
87
- print(evaluator.exact_match_scores)
88
- evaluator.save_results()
 
 
80
  with pd.ExcelWriter('evaluation_results_final.xlsx', engine='openpyxl', mode='w') as writer:
81
  scores_df.to_excel(writer, sheet_name='Scores', index=False)
82
 
83
+ def run_evaluator(self):
84
+ evaluator = KBVQAEvaluator('evaluation_results_final.xlsx', use_fuzzy=False)
85
+ #evaluator.evaluate()
86
+ st.table(evaluator.scores_df)
87
+ st.write(evaluator.scores_df)
88
+ #print(evaluator.exact_match_scores)
89
+ #evaluator.save_results()