Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def chat_with_points(chat_input, click_state, state, mask,image_input):
|
|
99 |
h,w = image_input.shape[:2]
|
100 |
|
101 |
image = cv2.resize(image_input,(512,512))
|
102 |
-
mask = cv2.resize(mask,(512,512)).astype(np.uint8)
|
103 |
print(image.shape,mask.shape)
|
104 |
print("chat_input:",chat_input)
|
105 |
image = pipe(prompt=chat_input, image=image, mask_image=mask).images[0]
|
|
|
99 |
h,w = image_input.shape[:2]
|
100 |
|
101 |
image = cv2.resize(image_input,(512,512))
|
102 |
+
mask = cv2.resize(mask,(512,512)).astype(np.uint8)
|
103 |
print(image.shape,mask.shape)
|
104 |
print("chat_input:",chat_input)
|
105 |
image = pipe(prompt=chat_input, image=image, mask_image=mask).images[0]
|