lnyan commited on
Commit
959a5ba
1 Parent(s): 7a4b02a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, False)
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]