Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def process_image(image):
|
|
| 24 |
size=image.size[::-1],
|
| 25 |
mode="bicubic",
|
| 26 |
align_corners=False,
|
| 27 |
-
)
|
| 28 |
output = prediction.cpu().numpy()
|
| 29 |
formatted = (output * 255 / np.max(output)).astype('uint8')
|
| 30 |
img = Image.fromarray(formatted)
|
|
|
|
| 24 |
size=image.size[::-1],
|
| 25 |
mode="bicubic",
|
| 26 |
align_corners=False,
|
| 27 |
+
).squeeze()
|
| 28 |
output = prediction.cpu().numpy()
|
| 29 |
formatted = (output * 255 / np.max(output)).astype('uint8')
|
| 30 |
img = Image.fromarray(formatted)
|