mishig HF staff commited on
Commit
7091940
1 Parent(s): 80e0f6b

add additional & negative prompts

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -73,11 +73,12 @@ def generate_images(canvas, prompt):
73
  input_img = input_img.filter(ImageFilter.GaussianBlur(radius=5))
74
  input_img = get_canny_filter(input_img)
75
  output = pipe(
76
- prompt,
77
  input_img,
78
  generator=generator,
79
  num_images_per_prompt=2,
80
  num_inference_steps=20,
 
81
  )
82
  all_outputs = [input_img]
83
  for image in output.images:
 
73
  input_img = input_img.filter(ImageFilter.GaussianBlur(radius=5))
74
  input_img = get_canny_filter(input_img)
75
  output = pipe(
76
+ f'{prompt}, best quality, extremely detailed',
77
  input_img,
78
  generator=generator,
79
  num_images_per_prompt=2,
80
  num_inference_steps=20,
81
+ negative_prompt="longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
82
  )
83
  all_outputs = [input_img]
84
  for image in output.images: