Spaces:
Running
Running
Fix file transformation
Browse files
utils.py
CHANGED
|
@@ -25,7 +25,8 @@ def preprocess_image(image_path):
|
|
| 25 |
img = tv_tensors.Image(img)
|
| 26 |
|
| 27 |
# Apply transformations
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
return img
|
| 31 |
|
|
|
|
| 25 |
img = tv_tensors.Image(img)
|
| 26 |
|
| 27 |
# Apply transformations
|
| 28 |
+
transform = get_transform()
|
| 29 |
+
img = transform(img)
|
| 30 |
|
| 31 |
return img
|
| 32 |
|