Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,7 +111,7 @@ def generate_response(image, question):
|
|
| 111 |
if isinstance(image, str):
|
| 112 |
image = Image.open(image).convert('RGB')
|
| 113 |
else:
|
| 114 |
-
image =
|
| 115 |
|
| 116 |
# Process image
|
| 117 |
pixel_values = load_image(image, max_num=6).to(torch.bfloat16).to(device)
|
|
|
|
| 111 |
if isinstance(image, str):
|
| 112 |
image = Image.open(image).convert('RGB')
|
| 113 |
else:
|
| 114 |
+
image = image.convert("RGB")
|
| 115 |
|
| 116 |
# Process image
|
| 117 |
pixel_values = load_image(image, max_num=6).to(torch.bfloat16).to(device)
|