NexAddo commited on
Commit
8a4733e
1 Parent(s): 342dea3

Update hackaprompt/evaluator.py

Browse files
Files changed (1) hide show
  1. hackaprompt/evaluator.py +1 -1
hackaprompt/evaluator.py CHANGED
@@ -49,7 +49,7 @@ class LevelEvaluator:
49
  return remove_whitespace(completion)
50
 
51
  def validate_completion(self, completion: str):
52
- expected_completion = self.expected_completion
53
  formatted_completion = self.format_completion(completion)
54
  return True if (expected_completion.lower() in formatted_completion.lower() or
55
  formatted_completion.lower() in expected_completion.lower()) else False
 
49
  return remove_whitespace(completion)
50
 
51
  def validate_completion(self, completion: str):
52
+ expected_completion = self.expected_completion()
53
  formatted_completion = self.format_completion(completion)
54
  return True if (expected_completion.lower() in formatted_completion.lower() or
55
  formatted_completion.lower() in expected_completion.lower()) else False