Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def send_req(input_img: PIL.Image.Image):
|
|
36 |
response = requests.post(url, json=payload, headers=headers)
|
37 |
|
38 |
image_data = base64.b64decode(response.json()["output"])
|
39 |
-
image = Image.open(BytesIO(image_data))
|
40 |
|
41 |
return image
|
42 |
|
|
|
36 |
response = requests.post(url, json=payload, headers=headers)
|
37 |
|
38 |
image_data = base64.b64decode(response.json()["output"])
|
39 |
+
image = Image.open(io.BytesIO(image_data))
|
40 |
|
41 |
return image
|
42 |
|