Spaces:
Running
Running
Update hackaprompt/evaluator.py
Browse files- hackaprompt/evaluator.py +1 -1
hackaprompt/evaluator.py
CHANGED
@@ -54,7 +54,7 @@ class LevelEvaluator:
|
|
54 |
formatted_completion = self.format_completion(completion)
|
55 |
translator = str.maketrans('', '', string.punctuation)
|
56 |
|
57 |
-
return
|
58 |
|
59 |
def compute_score(self, is_correct, token_count):
|
60 |
score_multiplier = self.completer.get_score_multiplier()
|
|
|
54 |
formatted_completion = self.format_completion(completion)
|
55 |
translator = str.maketrans('', '', string.punctuation)
|
56 |
|
57 |
+
return expected_completion == completion
|
58 |
|
59 |
def compute_score(self, is_correct, token_count):
|
60 |
score_multiplier = self.completer.get_score_multiplier()
|