soiz commited on
Commit
a2b9901
1 Parent(s): a9ec717

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def gen_fn(model_str, prompt, negative_prompt=None, noise=None, cfg_scale=None,
70
  # Check if the image is completely black
71
  black = Image.new('RGB', image.size, (0, 0, 0))
72
  if ImageChops.difference(image, black).getbbox() is None:
73
- return None, 'The image is completely black. There may be a parameter that cannot be specified, or an error may have occurred internally.'
74
 
75
  return image, None
76
 
 
70
  # Check if the image is completely black
71
  black = Image.new('RGB', image.size, (0, 0, 0))
72
  if ImageChops.difference(image, black).getbbox() is None:
73
+ return None, 'The image is completely black. There may be a parameter that cannot be specified, or an error may have occurred internally. Try regenerating it. If the problem still cannot be resolved, try giving up, changing the parameters, or reducing the type or number of parameters.'
74
 
75
  return image, None
76