Severian commited on
Commit
023776a
·
verified ·
1 Parent(s): bba5f8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -454,14 +454,14 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
454
  prompt = gr.Textbox(
455
  label="Artistic Prompt",
456
  placeholder="Describe the style or theme for your QR code art (For best results, keep the prompt to 75 characters or less as seen below)",
457
- value="A high-res, photo-realistic minimalist rendering of Mount Fuji as a sharp, semi-realistic silhouette on the horizon. The mountain conveys strength and motion with clean, crisp lines and natural flow. Features detailed snow textures, subtle ridge highlights, and a powerful yet serene atmosphere. Emphasizes strength with clarity and precision in texture and light. (Sharp outlines:1.5), (Photo-realistic:1.4), (Detailed textures:1.3), (Minimalist:1.3), (Semi-realistic:1.3), (Monochrome contrast:1.2), (Crisp detail:1.2), (Evoking strength:1.2). Inspired by traditional Japanese woodblock prints, nature photography, and minimalist design principles.",
458
  info="Describe the style or theme for your QR code art (For best results, keep the prompt to 75 characters or less as seen in the example)",
459
  lines=8,
460
  )
461
  negative_prompt = gr.Textbox(
462
  label="Elements to Avoid",
463
  placeholder="Describe what you don't want in the image",
464
- value="ugly, disfigured, low quality, blurry, nsfw, bad_pictures, (bad_prompt_version2:0.8), EasyNegative, 3d, cartoon, anime, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), poorly drawn, distorted, overexposed, flat shading, bad proportions, deformed, pixelated, messy details, lack of contrast, unrealistic textures, bad anatomy, rough edges, low resolution, text artifacts.",
465
  info="List elements or styles you want to avoid in your QR code art.",
466
  lines=4,
467
  )
@@ -526,7 +526,7 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
526
  )
527
 
528
  with gr.Column():
529
- result_image = gr.Image(label="Your Artistic QR Code", show_download_button=True, show_fullscreen_button=True)
530
  scan_button = gr.Button("Verify QR Code Works", visible=False)
531
  scan_result = gr.Textbox(label="Validation Result of QR Code", interactive=False, visible=False)
532
  used_seed = gr.Number(label="Seed Used", interactive=False)
@@ -667,12 +667,12 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
667
  with gr.Tab("Image Editing"):
668
  with gr.Column():
669
  image_selector = gr.Dropdown(label="Select Image to Edit", choices=[], interactive=True, visible=False)
670
- image_to_edit = gr.Image(label="Your Artistic QR Code", show_download_button=True, show_fullscreen_button=True)
671
 
672
  with gr.Row():
673
- qr_overlay = gr.Checkbox(label="Overlay Original QR Code", value=False)
674
- qr_opacity = gr.Slider(minimum=0.1, maximum=1.0, step=0.1, value=0.5, label="QR Overlay Opacity")
675
- edge_enhance = gr.Slider(minimum=0.0, maximum=5.0, step=0.1, value=0.0, label="Edge Enhancement")
676
 
677
  with gr.Row():
678
  red_balance = gr.Slider(minimum=-1.0, maximum=1.0, step=0.1, value=0.0, label="Red Balance")
 
454
  prompt = gr.Textbox(
455
  label="Artistic Prompt",
456
  placeholder="Describe the style or theme for your QR code art (For best results, keep the prompt to 75 characters or less as seen below)",
457
+ value="A high-res, photo-realistic minimalist rendering of Mount Fuji as a sharp, semi-realistic silhouette on the horizon. The mountain conveys strength and motion with clean, crisp lines and natural flow. Features detailed snow textures, subtle ridge highlights, and a powerful yet serene atmosphere. Emphasizes strength with clarity and precision in texture and light.",
458
  info="Describe the style or theme for your QR code art (For best results, keep the prompt to 75 characters or less as seen in the example)",
459
  lines=8,
460
  )
461
  negative_prompt = gr.Textbox(
462
  label="Elements to Avoid",
463
  placeholder="Describe what you don't want in the image",
464
+ value="ugly, disfigured, low quality, blurry, nsfw, bad_pictures, poorly drawn, distorted, overexposed, flat shading, bad proportions, deformed, pixelated, messy details, lack of contrast, unrealistic textures, bad anatomy, rough edges, low resolution",
465
  info="List elements or styles you want to avoid in your QR code art.",
466
  lines=4,
467
  )
 
526
  )
527
 
528
  with gr.Column():
529
+ result_image = gr.Image(label="Your Artistic QR Code", show_download_button=True, show_fullscreen_button=True, container=True, info="You can download as an image by clicking the download button on the right.")
530
  scan_button = gr.Button("Verify QR Code Works", visible=False)
531
  scan_result = gr.Textbox(label="Validation Result of QR Code", interactive=False, visible=False)
532
  used_seed = gr.Number(label="Seed Used", interactive=False)
 
667
  with gr.Tab("Image Editing"):
668
  with gr.Column():
669
  image_selector = gr.Dropdown(label="Select Image to Edit", choices=[], interactive=True, visible=False)
670
+ image_to_edit = gr.Image(label="Your Artistic QR Code", show_download_button=True, show_fullscreen_button=True, container=True, info="Upload your generated QR code image here to edit it.")
671
 
672
  with gr.Row():
673
+ qr_overlay = gr.Checkbox(label="Overlay Original QR Code", value=False, visible=False)
674
+ qr_opacity = gr.Slider(minimum=0.1, maximum=1.0, step=0.1, value=0.5, label="QR Overlay Opacity", visible=False)
675
+ edge_enhance = gr.Slider(minimum=0.0, maximum=5.0, step=0.1, value=0.0, label="Edge Enhancement", visible=False)
676
 
677
  with gr.Row():
678
  red_balance = gr.Slider(minimum=-1.0, maximum=1.0, step=0.1, value=0.0, label="Red Balance")