Severian commited on
Commit
5579e2c
·
verified ·
1 Parent(s): ee9c51d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -329,19 +329,14 @@ with gr.Blocks(theme='Hev832/Applio') as blocks:
329
  info="List elements or styles you want to avoid in your QR code art.",
330
  )
331
 
332
- with gr.Accordion(label="Init Images (Optional)", open=False, visible=True) as init_image_acc:
333
- init_image = gr.Image(label="Init Image (Optional). Leave blank to generate image with AI", type="pil")
334
  with gr.Row():
335
  use_qr_code_as_init_image = gr.Checkbox(
336
  label="Uncheck to use your own image for generation",
337
  value=True,
338
  interactive=True,
339
- info="Allows you to use your own image for generation"
340
- )
341
- invert_init_image = gr.Checkbox(
342
- label="Invert Init Image",
343
- value=False,
344
- info="Check this to invert the colors of the init image"
345
  )
346
  invert_init_image_button = gr.Button("Invert Init Image")
347
 
@@ -514,6 +509,7 @@ with gr.Blocks(theme='Hev832/Applio') as blocks:
514
  brightness = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Brightness")
515
  contrast = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Contrast")
516
  saturation = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Saturation")
 
517
  invert_button = gr.Button("Invert Image")
518
 
519
 
 
329
  info="List elements or styles you want to avoid in your QR code art.",
330
  )
331
 
332
+ with gr.Accordion(label="Use Your Own Image as a Reference", open=False, visible=True) as init_image_acc:
333
+ init_image = gr.Image(label="Reference Image", type="pil")
334
  with gr.Row():
335
  use_qr_code_as_init_image = gr.Checkbox(
336
  label="Uncheck to use your own image for generation",
337
  value=True,
338
  interactive=True,
339
+ info="Allows you to use your own image for generation, otherwise a generic QR Code is created automatically as the base image"
 
 
 
 
 
340
  )
341
  invert_init_image_button = gr.Button("Invert Init Image")
342
 
 
509
  brightness = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Brightness")
510
  contrast = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Contrast")
511
  saturation = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Saturation")
512
+ with gr.Row():
513
  invert_button = gr.Button("Invert Image")
514
 
515