Spaces:
Runtime error
Runtime error
williamcfrancis
commited on
Commit
·
0b3980e
1
Parent(s):
f48356e
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def deblur_img(ip_image):
|
|
83 |
op_image = process(ip_image, length_value, angle_value)
|
84 |
# op_image = (op_image*255).astype(np.uint8)
|
85 |
# op_image = (255/(np.max(op_image)-np.min(op_image))) * (op_image-np.min(op_image))
|
86 |
-
|
87 |
return op_image
|
88 |
|
89 |
css = ".output-image, .input-image, .image-preview {height: 480px !important} "
|
|
|
83 |
op_image = process(ip_image, length_value, angle_value)
|
84 |
# op_image = (op_image*255).astype(np.uint8)
|
85 |
# op_image = (255/(np.max(op_image)-np.min(op_image))) * (op_image-np.min(op_image))
|
86 |
+
op_image = op_image/np.max(op_image)
|
87 |
return op_image
|
88 |
|
89 |
css = ".output-image, .input-image, .image-preview {height: 480px !important} "
|