NexAddo commited on
Commit
a7737d3
1 Parent(s): 77d904c

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 formatted_completion in expected_completion else False
55
 
 
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 formatted_completion in expected_completion else False
55