Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -198,11 +198,11 @@ with gr.Blocks() as blocks:
|
|
198 |
value=1.1,
|
199 |
label="QR Code Visibility",
|
200 |
info="""
|
201 |
-
Balance between QR code clarity and artistic integration:
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
)
|
207 |
strength = gr.Slider(
|
208 |
minimum=0.0,
|
@@ -211,11 +211,12 @@ with gr.Blocks() as blocks:
|
|
211 |
value=0.9,
|
212 |
label="Artistic Freedom",
|
213 |
info="""
|
214 |
-
Controls how much the AI can alter the QR code:
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
|
|
219 |
)
|
220 |
guidance_scale = gr.Slider(
|
221 |
minimum=0.0,
|
@@ -224,22 +225,24 @@ with gr.Blocks() as blocks:
|
|
224 |
value=7.5,
|
225 |
label="Prompt Adherence",
|
226 |
info="""
|
227 |
-
Determines how closely the AI follows your prompt:
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
|
|
232 |
)
|
233 |
sampler = gr.Dropdown(
|
234 |
choices=list(SAMPLER_MAP.keys()),
|
235 |
value="DPM++ Karras SDE",
|
236 |
label="Image Generation Technique",
|
237 |
info="""
|
238 |
-
Different methods for creating your QR art:
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
|
|
243 |
)
|
244 |
seed = gr.Slider(
|
245 |
minimum=-1,
|
@@ -248,10 +251,11 @@ with gr.Blocks() as blocks:
|
|
248 |
value=-1,
|
249 |
label="Creative Seed",
|
250 |
info="""
|
251 |
-
Controls the randomness in art creation:
|
252 |
-
|
253 |
-
|
254 |
-
|
|
|
255 |
randomize=False,
|
256 |
)
|
257 |
with gr.Row():
|
|
|
198 |
value=1.1,
|
199 |
label="QR Code Visibility",
|
200 |
info="""
|
201 |
+
<p>### Balance between QR code clarity and artistic integration:
|
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.</p>"""
|
206 |
)
|
207 |
strength = gr.Slider(
|
208 |
minimum=0.0,
|
|
|
211 |
value=0.9,
|
212 |
label="Artistic Freedom",
|
213 |
info="""
|
214 |
+
### Controls how much the AI can alter the QR code:
|
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,
|
|
|
225 |
value=7.5,
|
226 |
label="Prompt Adherence",
|
227 |
info="""
|
228 |
+
### Determines how closely the AI follows your prompt:
|
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 |
info="""
|
240 |
+
### Different methods for creating your QR art:
|
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,
|
|
|
251 |
value=-1,
|
252 |
label="Creative Seed",
|
253 |
info="""
|
254 |
+
### Controls the randomness in art creation:
|
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():
|