Mint security eval fix (#11273)

Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
This commit is contained in:
juanmichelini
2025-10-15 22:42:05 -03:00
committed by GitHub
parent 0522734875
commit 471d272c7c

View File

@@ -307,7 +307,7 @@ class TheoremqaTask(Task):
# Converting the string answer to a number/list/bool/option
try:
prediction = eval(prediction)
prediction = ast.literal_eval(prediction)
except Exception:
LOGGER.warning(
f'[TASK] Failed to convert the answer: {prediction}\n{traceback.format_exc()}'