Severian commited on
Commit
ad1ffde
·
verified ·
1 Parent(s): 251e6c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -8
app.py CHANGED
@@ -339,15 +339,21 @@ def invert_init_image_display(image):
339
  return inverted
340
 
341
  css = """
342
- h1, h2, h3, h4, h5, h6, p, li, ul, ol, a {
343
  text-align: center;
344
  display: block;
 
 
345
  }
346
  ul, ol {
347
  margin-left: auto;
348
  margin-right: auto;
349
  display: table;
350
  }
 
 
 
 
351
  """
352
 
353
  # Add login function
@@ -364,8 +370,10 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
364
  with gr.Tab("Welcome"):
365
  gr.Markdown(
366
  """
367
- ![Yamamoto Logo](https://cdn-uploads.huggingface.co/production/uploads/64740cf7485q8e1bd51ac9/_VyYxp5qE_nRZ_LJqBxmL.webp)
 
368
  # 🎨 Yamamoto QR Code Art Generator
 
369
  ## Transform Your QR Codes into Brand Masterpieces
370
  This cutting-edge tool empowers our creative team to craft visually stunning,<br>
371
  on-brand QR codes that perfectly blend functionality with artistic expression.
@@ -615,20 +623,20 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
615
 
616
  with gr.Tab("Image Editing"):
617
  with gr.Column():
618
- image_selector = gr.Dropdown(label="Select Image to Edit", choices=[], interactive=True)
619
  image_to_edit = gr.Image(label="Your Artistic QR Code", show_download_button=True, show_fullscreen_button=True)
620
 
621
- with gr.Row():
622
- edited_image = gr.Image(label="Edited QR Code", show_download_button=True, show_fullscreen_button=True)
623
- scan_button = gr.Button("Verify QR Code Works")
624
- scan_result = gr.Textbox(label="Validation Result of QR Code", interactive=False)
625
-
626
  with gr.Row():
627
  brightness = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Brightness")
628
  contrast = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Contrast")
629
  saturation = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Saturation")
630
  with gr.Row():
631
  invert_button = gr.Button("Invert Image", size="sm")
 
 
 
 
 
632
 
633
  used_seed = gr.Number(label="Seed Used", interactive=False)
634
 
 
339
  return inverted
340
 
341
  css = """
342
+ h1, h2, h3, h4, h5, h6, p, li, ul, ol, a, .centered-image {
343
  text-align: center;
344
  display: block;
345
+ margin-left: auto;
346
+ margin-right: auto;
347
  }
348
  ul, ol {
349
  margin-left: auto;
350
  margin-right: auto;
351
  display: table;
352
  }
353
+ .centered-image {
354
+ max-width: 100%;
355
+ height: auto;
356
+ }
357
  """
358
 
359
  # Add login function
 
370
  with gr.Tab("Welcome"):
371
  gr.Markdown(
372
  """
373
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/8lHjpId7-JDalHq1JByPE.webp" alt="Yamamoto Logo" class="centered-image">
374
+
375
  # 🎨 Yamamoto QR Code Art Generator
376
+
377
  ## Transform Your QR Codes into Brand Masterpieces
378
  This cutting-edge tool empowers our creative team to craft visually stunning,<br>
379
  on-brand QR codes that perfectly blend functionality with artistic expression.
 
623
 
624
  with gr.Tab("Image Editing"):
625
  with gr.Column():
626
+ image_selector = gr.Dropdown(label="Select Image to Edit", choices=[], interactive=True, visible=False)
627
  image_to_edit = gr.Image(label="Your Artistic QR Code", show_download_button=True, show_fullscreen_button=True)
628
 
 
 
 
 
 
629
  with gr.Row():
630
  brightness = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Brightness")
631
  contrast = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Contrast")
632
  saturation = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Saturation")
633
  with gr.Row():
634
  invert_button = gr.Button("Invert Image", size="sm")
635
+
636
+ with gr.Row():
637
+ edited_image = gr.Image(label="Edited QR Code", show_download_button=True, show_fullscreen_button=True, visible=False)
638
+ scan_button = gr.Button("Verify QR Code Works", size="sm")
639
+ scan_result = gr.Textbox(label="Validation Result of QR Code", interactive=False)
640
 
641
  used_seed = gr.Number(label="Seed Used", interactive=False)
642