Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NameError in conversation.py #17

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

h0jicha
Copy link
Contributor

@h0jicha h0jicha commented Dec 3, 2023

When I started up a gradio web server and sent an image and text, I encountered the following error.

2023-12-04 02:00:42 | ERROR | stderr |   File "/~~/LLaVA-Plus/llava/conversation.py", line 453, in remove_pil
2023-12-04 02:00:42 | ERROR | stderr |     if isinstance(x, Image.Image):
2023-12-04 02:00:42 | ERROR | stderr | NameError: name 'Image' is not defined

I added a line from PIL import Image in llava/conversation.py to resolve it.

This will probably also resolve issue #12.

@SlongLiu SlongLiu merged commit faaa9ea into LLaVA-VL:main Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants