asoderznik
commited on
Commit
•
9a7b414
1
Parent(s):
478e105
Update handler.py
Browse files- handler.py +4 -4
handler.py
CHANGED
@@ -37,10 +37,10 @@ class EndpointHandler():
|
|
37 |
print("")
|
38 |
|
39 |
# decode base64 image to PIL
|
40 |
-
image = Image.open(BytesIO(base64.b64decode(inputs['image'])))
|
41 |
-
print("Printing loaded image into library")
|
42 |
-
print(image)
|
43 |
-
print("")
|
44 |
|
45 |
# run inference pipeline
|
46 |
#upscaled_image = self.pipe(prompt="", image = image).images[0]
|
|
|
37 |
print("")
|
38 |
|
39 |
# decode base64 image to PIL
|
40 |
+
#image = Image.open(BytesIO(base64.b64decode(inputs['image'])))
|
41 |
+
#print("Printing loaded image into library")
|
42 |
+
#print(image)
|
43 |
+
#print("")
|
44 |
|
45 |
# run inference pipeline
|
46 |
#upscaled_image = self.pipe(prompt="", image = image).images[0]
|