Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|