Skip to content

Commit

Permalink
fix image layout for llava gradio (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Nov 11, 2024
1 parent f3e0ec4 commit 37640c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/llava-multimodal-chatbot/gradio_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def read_image(path: str) -> ov.Tensor:
"""
pic = Image.open(path).convert("RGB")
image_data = np.array(pic.getdata()).reshape(1, 3, pic.size[1], pic.size[0]).astype(np.byte)
image_data = np.array(pic.getdata()).reshape(1, pic.size[1], pic.size[0], 3).astype(np.byte)
return ov.Tensor(image_data)

class TextQueue:
Expand Down

0 comments on commit 37640c3

Please sign in to comment.