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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def generate_image(prompt, input_image, low_threshold, high_threshold, strength,
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
 
 
88
  print(pipe.get_active_adapters())
89
 
90
  ## execute if an image is provided
91
+ if not isinstance(input_image, type(None)):
92
  # Apply edge detection
93
  edge_detected = apply_canny(input_image, low_threshold, high_threshold)
94