Update README.md
Browse files
README.md
CHANGED
@@ -36,7 +36,7 @@ image = Image.open(requests.get(url, stream=True).raw)
|
|
36 |
image.save("new_image.jpg")
|
37 |
image = Image.open("new_image.jpg")
|
38 |
|
39 |
-
inputs = processor(text=prompt, images=image, return_tensors="pt"
|
40 |
|
41 |
generated_ids = model.generate(
|
42 |
pixel_values=inputs["pixel_values"],
|
@@ -91,7 +91,7 @@ image = Image.open(requests.get(url, stream=True).raw)
|
|
91 |
|
92 |
def run_example(prompt):
|
93 |
|
94 |
-
inputs = processor(text=prompt, images=image, return_tensors="pt"
|
95 |
generated_ids = model.generate(
|
96 |
pixel_values=inputs["pixel_values"],
|
97 |
input_ids=inputs["input_ids"],
|
|
|
36 |
image.save("new_image.jpg")
|
37 |
image = Image.open("new_image.jpg")
|
38 |
|
39 |
+
inputs = processor(text=prompt, images=image, return_tensors="pt")
|
40 |
|
41 |
generated_ids = model.generate(
|
42 |
pixel_values=inputs["pixel_values"],
|
|
|
91 |
|
92 |
def run_example(prompt):
|
93 |
|
94 |
+
inputs = processor(text=prompt, images=image, return_tensors="pt")
|
95 |
generated_ids = model.generate(
|
96 |
pixel_values=inputs["pixel_values"],
|
97 |
input_ids=inputs["input_ids"],
|