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 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
|
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()
|