Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def run(sketch, caption, threshold, seed):
|
|
133 |
hsv_image[..., 2][mask] = 0 # Value set to 0, making it black
|
134 |
|
135 |
mask_tensor_org = sketch2[:,:,0]/255
|
136 |
-
hsv_image[mask_tensor_org
|
137 |
|
138 |
# Convert the HSV image back to RGB to display and save
|
139 |
rgb_image = hsv_to_rgb(hsv_image)
|
|
|
133 |
hsv_image[..., 2][mask] = 0 # Value set to 0, making it black
|
134 |
|
135 |
mask_tensor_org = sketch2[:,:,0]/255
|
136 |
+
hsv_image[mask_tensor_org>=0.5] = [0,0,1]
|
137 |
|
138 |
# Convert the HSV image back to RGB to display and save
|
139 |
rgb_image = hsv_to_rgb(hsv_image)
|