ChavinloSocialRise commited on
Commit
cd89bfa
·
verified ·
1 Parent(s): c927ef2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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