From 400c6babb7eb0dc7efbb6c0da69c688d59a92946 Mon Sep 17 00:00:00 2001 From: SebK Date: Tue, 30 Apr 2024 21:05:18 -0700 Subject: [PATCH] Docs: Undefined variable in README (#85) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8484b0f..e82d8ca 100755 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ from io import BytesIO from PIL import Image image_url = 'https://media-cdn.tripadvisor.com/media/photo-s/1b/28/6b/53/lovely-armenia.jpg' -image_url = Image.open(BytesIO(requests.get(image_url).content)) +image = Image.open(BytesIO(requests.get(image_url).content)) image_data = processor_image(image) image_features, image_embedding = model_image.encode(image_data, return_features=True) ```