diff --git a/src/smolagents/e2b_executor.py b/src/smolagents/e2b_executor.py index fe87011..38fcb01 100644 --- a/src/smolagents/e2b_executor.py +++ b/src/smolagents/e2b_executor.py @@ -137,7 +137,7 @@ locals().update({key: value for key, value in pickle_dict.items()}) if getattr(result, attribute_name) is not None: image_output = getattr(result, attribute_name) decoded_bytes = base64.b64decode(image_output.encode("utf-8")) - return Image.open(BytesIO(decoded_bytes)), execution_logs + return Image.open(BytesIO(decoded_bytes)), execution_logs, self.final_answer for attribute_name in [ "chart", "data",