diff --git a/python/sglang/srt/utils.py b/python/sglang/srt/utils.py index 212533f1c..54e14fe67 100644 --- a/python/sglang/srt/utils.py +++ b/python/sglang/srt/utils.py @@ -209,7 +209,7 @@ def load_image(image_file): elif image_file.lower().endswith(("png", "jpg", "jpeg", "webp", "gif")): image = Image.open(image_file) elif image_file.startswith("data:"): - image_file = image_url.split(",")[1] + image_file = image_file.split(",")[1] image = Image.open(BytesIO(base64.b64decode(image_file))) else: image = Image.open(BytesIO(base64.b64decode(image_file)))