Update README.md
Browse files
README.md
CHANGED
|
@@ -119,7 +119,7 @@ model.eval()
|
|
| 119 |
# Example image from the web
|
| 120 |
url = "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Carol_Burnett_1958.JPG/250px-Carol_Burnett_1958.JPG"
|
| 121 |
try:
|
| 122 |
-
image = Image.open(requests.get(url, stream=True
|
| 123 |
except Exception as e:
|
| 124 |
print(f"Could not load image from URL: {e}")
|
| 125 |
exit()
|
|
|
|
| 119 |
# Example image from the web
|
| 120 |
url = "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Carol_Burnett_1958.JPG/250px-Carol_Burnett_1958.JPG"
|
| 121 |
try:
|
| 122 |
+
image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
|
| 123 |
except Exception as e:
|
| 124 |
print(f"Could not load image from URL: {e}")
|
| 125 |
exit()
|