mirror of
https://github.com/web-arena-x/webarena.git
synced 2026-02-06 11:16:53 +00:00
Update helper_functions.py
This commit is contained in:
parent
ce732b26dc
commit
dc56401827
@ -154,7 +154,7 @@ class RenderHelper(object):
|
||||
if render_screenshot:
|
||||
# image observation
|
||||
img_obs = observation["image"]
|
||||
image = Image.fromarray(img_obs)
|
||||
image = Image.fromarray(img_obs) # type:ignore
|
||||
byte_io = io.BytesIO()
|
||||
image.save(byte_io, format="PNG")
|
||||
byte_io.seek(0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user