tombetthauser commited on
Commit
1707f2c
Β·
1 Parent(s): 6f7ae8f

Fixed height width divisibility by 8 error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -162,7 +162,7 @@ def image_prompt(prompt, guidance, steps, seed, height, width):
162
  )
163
  else:
164
  return (
165
- pipe(prompt="", guidance_scale=0, num_inference_steps=1, generator=generator, height=50, width=50).images[0],
166
  f"Prompt violates Hugging Face's Terms of Service"
167
  )
168
 
@@ -317,7 +317,7 @@ def simple_image_prompt(prompt, dropdown, size_dropdown):
317
  )
318
  else:
319
  return (
320
- pipe(prompt="", guidance_scale=0, num_inference_steps=1, generator=generator, height=50, width=50).images[0],
321
  f"Prompt violates Hugging Face's Terms of Service"
322
  )
323
 
 
162
  )
163
  else:
164
  return (
165
+ pipe(prompt="", guidance_scale=0, num_inference_steps=1, generator=generator, height=32, width=32).images[0],
166
  f"Prompt violates Hugging Face's Terms of Service"
167
  )
168
 
 
317
  )
318
  else:
319
  return (
320
+ pipe(prompt="", guidance_scale=0, num_inference_steps=1, generator=generator, height=32, width=32).images[0],
321
  f"Prompt violates Hugging Face's Terms of Service"
322
  )
323