Fix the code snippets
Browse files(Pdb) image.convert("RGB")
<PIL.Image.Image image mode=RGB size=1200x750 at 0x11B7D23C0>
(Pdb) image.convert("rgb")
*** ValueError: conversion from RGB to rgb not supported
(Pdb)
README.md
CHANGED
|
@@ -175,7 +175,7 @@ model.to("cuda")
|
|
| 175 |
# Inference
|
| 176 |
url = "https://assets-c4akfrf5b4d3f4b7.z01.azurefd.net/assets/2024/04/BMDataViz_661fb89f3845e.png"
|
| 177 |
image = Image.open(BytesIO(requests.get(url, stream=True).content))
|
| 178 |
-
image = image.convert("
|
| 179 |
|
| 180 |
convs = [
|
| 181 |
{"role": "system", "content": "You are agent that can see, talk and act."},
|
|
|
|
| 175 |
# Inference
|
| 176 |
url = "https://assets-c4akfrf5b4d3f4b7.z01.azurefd.net/assets/2024/04/BMDataViz_661fb89f3845e.png"
|
| 177 |
image = Image.open(BytesIO(requests.get(url, stream=True).content))
|
| 178 |
+
image = image.convert("RGB")
|
| 179 |
|
| 180 |
convs = [
|
| 181 |
{"role": "system", "content": "You are agent that can see, talk and act."},
|