Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def process_img(image):
|
|
31 |
result = model(y)
|
32 |
|
33 |
|
34 |
-
restored_img = result.
|
35 |
restored_img = np.clip(restored_img, 0. , 1.)
|
36 |
|
37 |
restored_img = (restored_img * 255.0).round().astype(np.uint8) # float32 to uint8
|
|
|
31 |
result = model(y)
|
32 |
|
33 |
|
34 |
+
restored_img = result.cpu().detach().numpy()
|
35 |
restored_img = np.clip(restored_img, 0. , 1.)
|
36 |
|
37 |
restored_img = (restored_img * 255.0).round().astype(np.uint8) # float32 to uint8
|