ar0551 commited on
Commit
950231c
·
verified ·
1 Parent(s): c2a0943

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -86,10 +86,9 @@ def apply_canny(image, low_threshold, high_threshold):
86
  def generate_image(prompt, input_image, low_threshold, high_threshold, strength, guidance, controlnet_conditioning_scale):
87
 
88
  print(pipe.get_active_adapters())
89
- print(str(type(input_image)))
90
 
91
  ## execute if an image is provided
92
- if str(type(input_image)) != "NoneType":
93
  # Apply edge detection
94
  edge_detected = apply_canny(input_image, low_threshold, high_threshold)
95
 
 
86
  def generate_image(prompt, input_image, low_threshold, high_threshold, strength, guidance, controlnet_conditioning_scale):
87
 
88
  print(pipe.get_active_adapters())
 
89
 
90
  ## execute if an image is provided
91
+ if isinstance(input_image, type(None)):
92
  # Apply edge detection
93
  edge_detected = apply_canny(input_image, low_threshold, high_threshold)
94