diegokauer commited on
Commit
a3bbe90
1 Parent(s): 355aa9e

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -1
model.py CHANGED
@@ -61,7 +61,8 @@ class Model(LabelStudioMLBase):
61
 
62
  url = task["data"]["image"]
63
  response = requests.get(generate_download_signed_url_v4(url))
64
- image_data = BytesIO(response.read())
 
65
  image = Image.open(image_data)
66
 
67
  original_width, original_height = image.size
 
61
 
62
  url = task["data"]["image"]
63
  response = requests.get(generate_download_signed_url_v4(url))
64
+ print(response)
65
+ image_data = BytesIO(response.content)
66
  image = Image.open(image_data)
67
 
68
  original_width, original_height = image.size