Spaces:
Running
Running
fix logging
Browse files
tasks.py
CHANGED
@@ -154,7 +154,7 @@ class Task:
|
|
154 |
results = self.metric._compute(
|
155 |
responses=self.outputs, references=self.dataset[self.label_column]
|
156 |
)
|
157 |
-
logging.info(f"{self.name}:{results}")
|
158 |
return results
|
159 |
|
160 |
# @cache
|
@@ -266,7 +266,7 @@ class Metrics:
|
|
266 |
try:
|
267 |
from math_equivalence import is_equiv
|
268 |
except ImportError as e:
|
269 |
-
logging.
|
270 |
"math_equivalence not installed, pip install git+https://github.com/hendrycks/math.git"
|
271 |
)
|
272 |
raise e
|
|
|
154 |
results = self.metric._compute(
|
155 |
responses=self.outputs, references=self.dataset[self.label_column]
|
156 |
)
|
157 |
+
# logging.info(f"{self.name}:{results}")
|
158 |
return results
|
159 |
|
160 |
# @cache
|
|
|
266 |
try:
|
267 |
from math_equivalence import is_equiv
|
268 |
except ImportError as e:
|
269 |
+
logging.error(
|
270 |
"math_equivalence not installed, pip install git+https://github.com/hendrycks/math.git"
|
271 |
)
|
272 |
raise e
|