jonathanpark
commited on
Commit
•
081c459
1
Parent(s):
000d5f1
better bytes
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -38,7 +38,7 @@ class EndpointHandler():
|
|
38 |
|
39 |
with request.urlopen(url) as response:
|
40 |
data = response.read()
|
41 |
-
init_image = Image.open(
|
42 |
init_image = Image.open(url)
|
43 |
init_image.thumbnail((512, 512))
|
44 |
|
|
|
38 |
|
39 |
with request.urlopen(url) as response:
|
40 |
data = response.read()
|
41 |
+
init_image = Image.open(data).convert("RGB")
|
42 |
init_image = Image.open(url)
|
43 |
init_image.thumbnail((512, 512))
|
44 |
|