Spaces:
Running
Running
Update my_model/results/evaluation.py
Browse files
my_model/results/evaluation.py
CHANGED
@@ -119,7 +119,7 @@ class KBVQAEvaluator:
|
|
119 |
scores_df = pd.DataFrame(scores_data)
|
120 |
|
121 |
# Saving the scores DataFrame to an Excel file
|
122 |
-
with pd.ExcelWriter(
|
123 |
self.df.to_excel(writer, sheet_name='Main Data', index=False)
|
124 |
scores_df.to_excel(writer, sheet_name='Scores', index=False)
|
125 |
|
|
|
119 |
scores_df = pd.DataFrame(scores_data)
|
120 |
|
121 |
# Saving the scores DataFrame to an Excel file
|
122 |
+
with pd.ExcelWriter(save_filename+'.xlsx', engine='openpyxl', mode='w') as writer:
|
123 |
self.df.to_excel(writer, sheet_name='Main Data', index=False)
|
124 |
scores_df.to_excel(writer, sheet_name='Scores', index=False)
|
125 |
|