Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -372,7 +372,7 @@ class StableDiffusionInpaint:
|
|
372 |
if enable_safety:
|
373 |
item.safety_checker = self.safety_checker
|
374 |
else:
|
375 |
-
item.safety_checker = lambda images, **kwargs: (images,
|
376 |
width, height = image_pil.size
|
377 |
sel_buffer = np.array(image_pil)
|
378 |
img = sel_buffer[:, :, 0:3]
|
|
|
372 |
if enable_safety:
|
373 |
item.safety_checker = self.safety_checker
|
374 |
else:
|
375 |
+
item.safety_checker = lambda images, **kwargs: (images, None)
|
376 |
width, height = image_pil.size
|
377 |
sel_buffer = np.array(image_pil)
|
378 |
img = sel_buffer[:, :, 0:3]
|