Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -197,12 +197,13 @@ with gr.Blocks() as blocks:
|
|
197 |
step=0.01,
|
198 |
value=1.1,
|
199 |
label="QR Code Visibility",
|
200 |
-
|
201 |
-
|
|
|
202 |
• Lower (0.0-0.5): Subtle, may be hard to scan
|
203 |
• Middle (0.6-1.5): Good blend of art and function
|
204 |
• Higher (1.6-5.0): Very clear QR code, less artistic freedom
|
205 |
-
Start at 1.1 and adjust to find your perfect balance
|
206 |
)
|
207 |
strength = gr.Slider(
|
208 |
minimum=0.0,
|
@@ -210,13 +211,13 @@ with gr.Blocks() as blocks:
|
|
210 |
step=0.01,
|
211 |
value=0.9,
|
212 |
label="Artistic Freedom",
|
213 |
-
|
214 |
-
|
|
|
215 |
• Lower (0.0-0.3): Minimal changes, closer to standard QR
|
216 |
• Middle (0.4-0.7): Balanced artistic elements
|
217 |
• Higher (0.8-1.0): Maximum creativity, may affect scannability
|
218 |
-
Begin with 0.9 for a creative yet functional result.
|
219 |
-
"""
|
220 |
)
|
221 |
guidance_scale = gr.Slider(
|
222 |
minimum=0.0,
|
@@ -224,25 +225,25 @@ with gr.Blocks() as blocks:
|
|
224 |
step=0.25,
|
225 |
value=7.5,
|
226 |
label="Prompt Adherence",
|
227 |
-
|
228 |
-
|
|
|
229 |
• Lower (0-5): More AI creativity, less prompt influence
|
230 |
• Middle (5-15): Balanced between prompt and AI interpretation
|
231 |
• Higher (15+): Strictly follows prompt, less variation
|
232 |
-
Start at 7.5 and adjust based on your desired outcome.
|
233 |
-
"""
|
234 |
)
|
235 |
sampler = gr.Dropdown(
|
236 |
choices=list(SAMPLER_MAP.keys()),
|
237 |
value="DPM++ Karras SDE",
|
238 |
label="Image Generation Technique",
|
239 |
-
|
240 |
-
|
|
|
241 |
• DPM++ Karras SDE: Versatile, high-quality results
|
242 |
• Euler: Sharp, detailed images
|
243 |
• DDIM: Good for abstract or artistic styles
|
244 |
-
Experiment to find what works best for your vision!
|
245 |
-
"""
|
246 |
)
|
247 |
seed = gr.Slider(
|
248 |
minimum=-1,
|
@@ -250,13 +251,13 @@ with gr.Blocks() as blocks:
|
|
250 |
step=1,
|
251 |
value=-1,
|
252 |
label="Creative Seed",
|
253 |
-
|
254 |
-
|
|
|
|
|
255 |
• -1: New, unique creation each time
|
256 |
• Any other number: Recreates the same image consistently
|
257 |
-
Use -1 to explore, or set a specific number to refine a design you like.
|
258 |
-
""",
|
259 |
-
randomize=False,
|
260 |
)
|
261 |
with gr.Row():
|
262 |
run_btn = gr.Button("🎨 Create Your QR Art", variant="primary")
|
|
|
197 |
step=0.01,
|
198 |
value=1.1,
|
199 |
label="QR Code Visibility",
|
200 |
+
)
|
201 |
+
gr.Markdown(
|
202 |
+
"""Balance between QR code clarity and artistic integration:
|
203 |
• Lower (0.0-0.5): Subtle, may be hard to scan
|
204 |
• Middle (0.6-1.5): Good blend of art and function
|
205 |
• Higher (1.6-5.0): Very clear QR code, less artistic freedom
|
206 |
+
Start at 1.1 and adjust to find your perfect balance."""
|
207 |
)
|
208 |
strength = gr.Slider(
|
209 |
minimum=0.0,
|
|
|
211 |
step=0.01,
|
212 |
value=0.9,
|
213 |
label="Artistic Freedom",
|
214 |
+
)
|
215 |
+
gr.Markdown(
|
216 |
+
"""Controls how much the AI can alter the QR code:
|
217 |
• Lower (0.0-0.3): Minimal changes, closer to standard QR
|
218 |
• Middle (0.4-0.7): Balanced artistic elements
|
219 |
• Higher (0.8-1.0): Maximum creativity, may affect scannability
|
220 |
+
Begin with 0.9 for a creative yet functional result."""
|
|
|
221 |
)
|
222 |
guidance_scale = gr.Slider(
|
223 |
minimum=0.0,
|
|
|
225 |
step=0.25,
|
226 |
value=7.5,
|
227 |
label="Prompt Adherence",
|
228 |
+
)
|
229 |
+
gr.Markdown(
|
230 |
+
"""Determines how closely the AI follows your prompt:
|
231 |
• Lower (0-5): More AI creativity, less prompt influence
|
232 |
• Middle (5-15): Balanced between prompt and AI interpretation
|
233 |
• Higher (15+): Strictly follows prompt, less variation
|
234 |
+
Start at 7.5 and adjust based on your desired outcome."""
|
|
|
235 |
)
|
236 |
sampler = gr.Dropdown(
|
237 |
choices=list(SAMPLER_MAP.keys()),
|
238 |
value="DPM++ Karras SDE",
|
239 |
label="Image Generation Technique",
|
240 |
+
)
|
241 |
+
gr.Markdown(
|
242 |
+
"""Different methods for creating your QR art:
|
243 |
• DPM++ Karras SDE: Versatile, high-quality results
|
244 |
• Euler: Sharp, detailed images
|
245 |
• DDIM: Good for abstract or artistic styles
|
246 |
+
Experiment to find what works best for your vision!"""
|
|
|
247 |
)
|
248 |
seed = gr.Slider(
|
249 |
minimum=-1,
|
|
|
251 |
step=1,
|
252 |
value=-1,
|
253 |
label="Creative Seed",
|
254 |
+
randomize=False,
|
255 |
+
)
|
256 |
+
gr.Markdown(
|
257 |
+
"""Controls the randomness in art creation:
|
258 |
• -1: New, unique creation each time
|
259 |
• Any other number: Recreates the same image consistently
|
260 |
+
Use -1 to explore, or set a specific number to refine a design you like.""",
|
|
|
|
|
261 |
)
|
262 |
with gr.Row():
|
263 |
run_btn = gr.Button("🎨 Create Your QR Art", variant="primary")
|