Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ninghu committed Apr 3, 2024
1 parent 7bb749f commit 9c311bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def validate_inputs(question: str, answer: str, ground_truth: str):
if (
not (question and question.strip() and question != "None")
or not (answer and answer.strip() and answer != "None")
or not (ground_truth and ground_truth.strip())
or not (ground_truth and ground_truth.strip() and ground_truth != "None")
):
raise ValueError("'question', 'answer' and 'ground_truth' must be non-empty strings.")

Expand Down

0 comments on commit 9c311bf

Please sign in to comment.