jke94 commited on
Commit
e2da4b3
1 Parent(s): f605d64
Files changed (1) hide show
  1. app.py +2 -2
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(image, 100, 200)
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)