Spaces:
Runtime error
Runtime error
Commit
Β·
1707f2c
1
Parent(s):
6f7ae8f
Fixed height width divisibility by 8 error
Browse files
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=
|
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=
|
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 |
|