Spaces:
Sleeping
Sleeping
Update evaluate.py
Browse files- evaluate.py +3 -3
evaluate.py
CHANGED
|
@@ -365,7 +365,7 @@ def run_comprehensive_evaluation(
|
|
| 365 |
|
| 366 |
df_display = df.rename(columns={"context_precision": "Ctx. Precision", "context_recall": "Ctx. Recall"})
|
| 367 |
table_rows = df_display.values.tolist()
|
| 368 |
-
headers = df_display.columns.tolist
|
| 369 |
|
| 370 |
|
| 371 |
output_path = "evaluation_results.csv"
|
|
@@ -399,7 +399,7 @@ def run_comprehensive_evaluation(
|
|
| 399 |
except Exception as e:
|
| 400 |
print(f"WARNING: Could not build confusion matrix: {e}")
|
| 401 |
|
| 402 |
-
|
| 403 |
-
return summary_text, table_rows
|
| 404 |
|
| 405 |
## END
|
|
|
|
| 365 |
|
| 366 |
df_display = df.rename(columns={"context_precision": "Ctx. Precision", "context_recall": "Ctx. Recall"})
|
| 367 |
table_rows = df_display.values.tolist()
|
| 368 |
+
headers = df_display.columns.tolist()
|
| 369 |
|
| 370 |
|
| 371 |
output_path = "evaluation_results.csv"
|
|
|
|
| 399 |
except Exception as e:
|
| 400 |
print(f"WARNING: Could not build confusion matrix: {e}")
|
| 401 |
|
| 402 |
+
return summary_text, table_rows, headers
|
| 403 |
+
# return summary_text, table_rows
|
| 404 |
|
| 405 |
## END
|