Spaces:
Sleeping
Sleeping
revert close img >_<
Browse files
app.py
CHANGED
@@ -144,9 +144,6 @@ def process_image(pil_image):
|
|
144 |
bottom = (h + 224) // 2
|
145 |
image = inp.crop((left, top, right, bottom))
|
146 |
|
147 |
-
# close image
|
148 |
-
inp.close()
|
149 |
-
|
150 |
# Convert pil image to numpy array and scale color channels to [0, 1]
|
151 |
np_image = np.array(image) / 255
|
152 |
|
|
|
144 |
bottom = (h + 224) // 2
|
145 |
image = inp.crop((left, top, right, bottom))
|
146 |
|
|
|
|
|
|
|
147 |
# Convert pil image to numpy array and scale color channels to [0, 1]
|
148 |
np_image = np.array(image) / 255
|
149 |
|