Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def inference(
|
|
| 56 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 57 |
generator=generator,
|
| 58 |
strength=strength,
|
| 59 |
-
num_inference_steps=
|
| 60 |
)
|
| 61 |
return out.images[0]
|
| 62 |
|
|
@@ -64,13 +64,14 @@ with gr.Blocks() as app:
|
|
| 64 |
gr.Markdown(
|
| 65 |
'''
|
| 66 |
# Illusion Diffusion π
|
|
|
|
| 67 |
**[Follow me on Twitter](https://twitter.com/angrypenguinPNG)**
|
| 68 |
'''
|
| 69 |
)
|
| 70 |
|
| 71 |
with gr.Row():
|
| 72 |
with gr.Column():
|
| 73 |
-
control_image = gr.Image(label="
|
| 74 |
prompt = gr.Textbox(label="Prompt")
|
| 75 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="ugly, disfigured, low quality, blurry, nsfw")
|
| 76 |
with gr.Accordion(label="Advanced Options", open=False):
|
|
@@ -93,3 +94,5 @@ app.queue(concurrency_count=4, max_size=20)
|
|
| 93 |
|
| 94 |
if __name__ == "__main__":
|
| 95 |
app.launch(debug=True)
|
|
|
|
|
|
|
|
|
| 56 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 57 |
generator=generator,
|
| 58 |
strength=strength,
|
| 59 |
+
num_inference_steps=30,
|
| 60 |
)
|
| 61 |
return out.images[0]
|
| 62 |
|
|
|
|
| 64 |
gr.Markdown(
|
| 65 |
'''
|
| 66 |
# Illusion Diffusion π
|
| 67 |
+
## Generate stunning illusion artwork with Stable Diffusion
|
| 68 |
**[Follow me on Twitter](https://twitter.com/angrypenguinPNG)**
|
| 69 |
'''
|
| 70 |
)
|
| 71 |
|
| 72 |
with gr.Row():
|
| 73 |
with gr.Column():
|
| 74 |
+
control_image = gr.Image(label="Input Illusion", type="pil")
|
| 75 |
prompt = gr.Textbox(label="Prompt")
|
| 76 |
negative_prompt = gr.Textbox(label="Negative Prompt", value="ugly, disfigured, low quality, blurry, nsfw")
|
| 77 |
with gr.Accordion(label="Advanced Options", open=False):
|
|
|
|
| 94 |
|
| 95 |
if __name__ == "__main__":
|
| 96 |
app.launch(debug=True)
|
| 97 |
+
|
| 98 |
+
|