Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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,
|
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")
|