Fix the code snippets
#12
by
xianbao
- opened
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."},
|