ajitemmanuel26
commited on
line 73 - it should be image instead of image image_url -> [image = Image.open(BytesIO(requests.get(image_url).content))]
Browse files
README.md
CHANGED
@@ -70,7 +70,7 @@ To encode the content:
|
|
70 |
```python
|
71 |
text = 'a cityscape bathed in the warm glow of the sun, with varied architecture and a towering, snow-capped mountain rising majestically in the background'
|
72 |
image_url = 'https://media-cdn.tripadvisor.com/media/photo-s/1b/28/6b/53/lovely-armenia.jpg'
|
73 |
-
|
74 |
|
75 |
image_data = processor_image(image)
|
76 |
text_data = processor_text(text)
|
|
|
70 |
```python
|
71 |
text = 'a cityscape bathed in the warm glow of the sun, with varied architecture and a towering, snow-capped mountain rising majestically in the background'
|
72 |
image_url = 'https://media-cdn.tripadvisor.com/media/photo-s/1b/28/6b/53/lovely-armenia.jpg'
|
73 |
+
image = Image.open(BytesIO(requests.get(image_url).content))
|
74 |
|
75 |
image_data = processor_image(image)
|
76 |
text_data = processor_text(text)
|