Updates Transformers Inference code in README.md (#8)
Browse files- Updates Transformers Inference code in README.md (99589740eed1a93479b97d875dae412083e29af7)
Co-authored-by: Tobias Haab <[email protected]>
README.md
CHANGED
@@ -193,7 +193,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
193 |
)
|
194 |
processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
|
195 |
|
196 |
-
image_paths = [
|
197 |
images = [Image.open(path) for path in image_paths]
|
198 |
messages = [
|
199 |
{
|
|
|
193 |
)
|
194 |
processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
|
195 |
|
196 |
+
image_paths = [url]
|
197 |
images = [Image.open(path) for path in image_paths]
|
198 |
messages = [
|
199 |
{
|