Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -13,10 +13,10 @@ def launch(image_input, prompt, negative_prompt, sd_models_dropdown):
|
|
13 |
|
14 |
def predict(image_input, prompt, negative_prompt, sd_models_dropdown):
|
15 |
|
16 |
-
image = np.array(image_input)
|
17 |
|
18 |
# Get canny image
|
19 |
-
image = cv2.Canny(
|
20 |
image = image[:, :, None]
|
21 |
image = np.concatenate([image, image, image], axis=2)
|
22 |
canny_image = Image.fromarray(image)
|
|
|
13 |
|
14 |
def predict(image_input, prompt, negative_prompt, sd_models_dropdown):
|
15 |
|
16 |
+
# image = np.array(image_input)
|
17 |
|
18 |
# Get canny image
|
19 |
+
image = cv2.Canny(image_input, 100, 200)
|
20 |
image = image[:, :, None]
|
21 |
image = np.concatenate([image, image, image], axis=2)
|
22 |
canny_image = Image.fromarray(image)
|