mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
Mint security eval fix (#11273)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
This commit is contained in:
@@ -307,7 +307,7 @@ class TheoremqaTask(Task):
|
|||||||
|
|
||||||
# Converting the string answer to a number/list/bool/option
|
# Converting the string answer to a number/list/bool/option
|
||||||
try:
|
try:
|
||||||
prediction = eval(prediction)
|
prediction = ast.literal_eval(prediction)
|
||||||
except Exception:
|
except Exception:
|
||||||
LOGGER.warning(
|
LOGGER.warning(
|
||||||
f'[TASK] Failed to convert the answer: {prediction}\n{traceback.format_exc()}'
|
f'[TASK] Failed to convert the answer: {prediction}\n{traceback.format_exc()}'
|
||||||
|
|||||||
Reference in New Issue
Block a user