Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar committed Jul 20, 2024
1 parent a7fd006 commit 5599985
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/tests/evaluation/compare_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read_markdown_table(file_path):
return df


def compare_scores(current_scores_path, main_scores_path, output_path):
def compare_scores(current_scores_path, main_scores_path):
# Read current scores
try:
current_df = read_markdown_table(current_scores_path)
Expand Down Expand Up @@ -65,7 +65,7 @@ def compare_scores(current_scores_path, main_scores_path, output_path):
output_df = output_df.fillna("N/A")

# Write to markdown file
with open(output_path, "w") as f:
with open("comparison.md", "w") as f:
f.write("## LLM Evaluation Score Comparison\n\n")
f.write(output_df.to_markdown(index=False))

Expand All @@ -74,4 +74,4 @@ def compare_scores(current_scores_path, main_scores_path, output_path):
current_scores_path = sys.argv[1]
main_scores_path = sys.argv[2]
output_path = sys.argv[3]
compare_scores(current_scores_path, main_scores_path, output_path)
compare_scores(current_scores_path, main_scores_path)

0 comments on commit 5599985

Please sign in to comment.