nroggendorff commited on
Commit
c097b3c
β€’
1 Parent(s): 292f247

fixith yon engleisch

Browse files

this one is a lot better than the others, good job

Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -121,7 +121,7 @@ def upscale(samples, upscale_method, scale_by):
121
 
122
  def check_inputs(prompt: str, control_image: Image.Image):
123
  if control_image is None:
124
- raise gr.Error("Please select or upload an Input Illusion")
125
  if prompt is None or prompt == "":
126
  raise gr.Error("Prompt is required")
127
 
@@ -222,10 +222,10 @@ with gr.Blocks() as app:
222
  '''
223
  <div style="text-align: center;">
224
  <h1>Illusion Diffusion HQ πŸŒ€</h1>
225
- <p style="font-size:16px;">Generate stunning high quality illusion artwork with Stable Diffusion</p>
226
- <p>Illusion Diffusion is back up with a safety checker! Because I have been asked, if you would like to support me, consider using <a href="https://deforum.studio">deforum.studio</a></p>
227
- <p>A space by AP <a href="https://twitter.com/angrypenguinPNG">Follow me on Twitter</a> with big contributions from <a href="https://twitter.com/multimodalart">multimodalart</a></p>
228
- <p>This project works by using <a href="https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster">Monster Labs QR Control Net</a>. Given a prompt and your pattern, we use a QR code conditioned controlnet to create a stunning illusion! Credit to: <a href="https://twitter.com/MrUgleh">MrUgleh</a> for discovering the workflow :)</p>
229
  </div>
230
  '''
231
  )
@@ -238,7 +238,7 @@ with gr.Blocks() as app:
238
  control_image = gr.Image(label="Input Illusion", type="pil", elem_id="control_image")
239
  controlnet_conditioning_scale = gr.Slider(minimum=0.0, maximum=5.0, step=0.01, value=0.8, label="Illusion strength", elem_id="illusion_strength", info="ControlNet conditioning scale")
240
  gr.Examples(examples=["checkers.png", "checkers_mid.jpg", "pattern.png", "ultra_checkers.png", "spiral.jpeg", "funky.jpeg" ], inputs=control_image)
241
- prompt = gr.Textbox(label="Prompt", elem_id="prompt", info="Type what you want to generate", placeholder="Medieval village scene with busy streets and castle in the distance")
242
  negative_prompt = gr.Textbox(label="Negative Prompt", info="Type what you don't want to see", value="low quality", elem_id="negative_prompt")
243
  with gr.Accordion(label="Advanced Options", open=False):
244
  guidance_scale = gr.Slider(minimum=0.0, maximum=50.0, step=0.25, value=7.5, label="Guidance Scale")
 
121
 
122
  def check_inputs(prompt: str, control_image: Image.Image):
123
  if control_image is None:
124
+ raise gr.Error("Please select or upload an input illusion")
125
  if prompt is None or prompt == "":
126
  raise gr.Error("Prompt is required")
127
 
 
222
  '''
223
  <div style="text-align: center;">
224
  <h1>Illusion Diffusion HQ πŸŒ€</h1>
225
+ <p style="font-size:16px;">Generate a stunning, high quality illusion with Stable Diffusion</p>
226
+ <p>Illusion Diffusion is backed up with a safety checker! If you would like to support me, consider doing so here: <a href="https://deforum.studio">deforum.studio</a></p>
227
+ <p>A space by AP <a href="https://twitter.com/angrypenguinPNG">Follow me on Twitter</a> this space was made with big contributions from <a href="https://twitter.com/multimodalart">multimodalart</a></p>
228
+ <p>This project utilizes the <a href="https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster">Monster Labs QR Control Net</a>. Given a prompt and a pattern, we use a QR code conditioned controlnet to create a stunning illusion! Credit to: <a href="https://twitter.com/MrUgleh">MrUgleh</a> for discovering this workflow :)</p>
229
  </div>
230
  '''
231
  )
 
238
  control_image = gr.Image(label="Input Illusion", type="pil", elem_id="control_image")
239
  controlnet_conditioning_scale = gr.Slider(minimum=0.0, maximum=5.0, step=0.01, value=0.8, label="Illusion strength", elem_id="illusion_strength", info="ControlNet conditioning scale")
240
  gr.Examples(examples=["checkers.png", "checkers_mid.jpg", "pattern.png", "ultra_checkers.png", "spiral.jpeg", "funky.jpeg" ], inputs=control_image)
241
+ prompt = gr.Textbox(label="Prompt", elem_id="prompt", info="Type what you want to generate", placeholder="A medieval village scene with busy streets and a castle in the distance")
242
  negative_prompt = gr.Textbox(label="Negative Prompt", info="Type what you don't want to see", value="low quality", elem_id="negative_prompt")
243
  with gr.Accordion(label="Advanced Options", open=False):
244
  guidance_scale = gr.Slider(minimum=0.0, maximum=50.0, step=0.25, value=7.5, label="Guidance Scale")