Spaces:
Sleeping
Sleeping
Commit
·
5eb6cb8
1
Parent(s):
04f5b7c
Update model.py
Browse files
model.py
CHANGED
@@ -56,7 +56,7 @@ class Model(LabelStudioMLBase):
|
|
56 |
|
57 |
|
58 |
url = task["data"]["image"]
|
59 |
-
image = Image.open(requests.get(url, stream=True).raw)
|
60 |
|
61 |
original_width, original_height = image.size
|
62 |
with torch.no_grad():
|
|
|
56 |
|
57 |
|
58 |
url = task["data"]["image"]
|
59 |
+
image = Image.open(requests.get(generate_download_signed_url_v4(url), stream=True).raw)
|
60 |
|
61 |
original_width, original_height = image.size
|
62 |
with torch.no_grad():
|