Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -315,21 +315,35 @@ def apply_edge_enhancement(image, strength):
|
|
315 |
|
316 |
|
317 |
css = """
|
318 |
-
h1, h2, h3, h4, h5, h6, p, li, ul, ol, a
|
319 |
-
text-align:
|
320 |
-
display: block;
|
321 |
-
margin-left: auto;
|
322 |
-
margin-right: auto;
|
323 |
}
|
324 |
-
|
|
|
325 |
margin-left: auto;
|
326 |
margin-right: auto;
|
327 |
-
display: table;
|
328 |
-
}
|
329 |
-
.centered-image {
|
330 |
max-width: 100%;
|
331 |
height: auto;
|
332 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
"""
|
334 |
|
335 |
def login(username, password):
|
@@ -343,20 +357,19 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
|
|
343 |
generated_images = gr.State([])
|
344 |
|
345 |
with gr.Tab("Welcome"):
|
346 |
-
with gr.Row():
|
347 |
-
with gr.Column(scale=2):
|
348 |
gr.Markdown(
|
349 |
"""
|
350 |
-
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/29sj9LyPQItG5uBOO2x3r.webp" alt="UGD Logo" width="250"
|
351 |
|
352 |
-
#
|
353 |
|
354 |
## Transform Your QR Codes into Brand Masterpieces
|
355 |
|
356 |
-
This cutting-edge tool empowers our creative team to craft visually stunning
|
357 |
on-brand QR codes that perfectly blend functionality with artistic expression.
|
358 |
-
|
359 |
-
## 🚀 How It Works:
|
360 |
|
361 |
1. **Enter Your QR Code Content**: Start by inputting the URL or text for your QR code.
|
362 |
2. **Craft Your Prompt**: Describe the artistic style or theme you envision for your QR code.
|
@@ -364,12 +377,11 @@ with gr.Blocks(theme='Hev832/Applio', css=css, fill_width=True, fill_height=True
|
|
364 |
4. **Generate and Iterate**: Click 'Run' to create your art, then refine as needed.
|
365 |
"""
|
366 |
)
|
367 |
-
|
368 |
-
with gr.Column(scale=1):
|
369 |
with gr.Row():
|
370 |
gr.Markdown(
|
371 |
"""
|
372 |
-
Login below using the internal<br>
|
373 |
username and password to access the full app.<br>
|
374 |
|
375 |
Once logged in, a new tab will appear named<br>
|
|
|
315 |
|
316 |
|
317 |
css = """
|
318 |
+
h1, h2, h3, h4, h5, h6, p, li, ul, ol, a {
|
319 |
+
text-align: left;
|
|
|
|
|
|
|
320 |
}
|
321 |
+
.centered-image {
|
322 |
+
display: block;
|
323 |
margin-left: auto;
|
324 |
margin-right: auto;
|
|
|
|
|
|
|
325 |
max-width: 100%;
|
326 |
height: auto;
|
327 |
}
|
328 |
+
|
329 |
+
|
330 |
+
.login-container {
|
331 |
+
display: flex;
|
332 |
+
flex-direction: column;
|
333 |
+
justify-content: center;
|
334 |
+
height: 100%;
|
335 |
+
}
|
336 |
+
|
337 |
+
.welcome-tab {
|
338 |
+
display: flex;
|
339 |
+
height: 100vh;
|
340 |
+
}
|
341 |
+
|
342 |
+
.welcome-content {
|
343 |
+
display: flex;
|
344 |
+
flex-direction: column;
|
345 |
+
justify-content: center;
|
346 |
+
}
|
347 |
"""
|
348 |
|
349 |
def login(username, password):
|
|
|
357 |
generated_images = gr.State([])
|
358 |
|
359 |
with gr.Tab("Welcome"):
|
360 |
+
with gr.Row(elem_classes="welcome-tab"):
|
361 |
+
with gr.Column(scale=2, elem_classes="welcome-content"):
|
362 |
gr.Markdown(
|
363 |
"""
|
364 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/29sj9LyPQItG5uBOO2x3r.webp" alt="UGD Logo" width="250" class="centered-image">
|
365 |
|
366 |
+
# Underground Digital's QR Code Art Generator
|
367 |
|
368 |
## Transform Your QR Codes into Brand Masterpieces
|
369 |
|
370 |
+
This cutting-edge tool empowers our creative team to craft visually stunning,
|
371 |
on-brand QR codes that perfectly blend functionality with artistic expression.
|
372 |
+
## How It Works:
|
|
|
373 |
|
374 |
1. **Enter Your QR Code Content**: Start by inputting the URL or text for your QR code.
|
375 |
2. **Craft Your Prompt**: Describe the artistic style or theme you envision for your QR code.
|
|
|
377 |
4. **Generate and Iterate**: Click 'Run' to create your art, then refine as needed.
|
378 |
"""
|
379 |
)
|
380 |
+
with gr.Column(scale=1, elem_classes="login-container"):
|
|
|
381 |
with gr.Row():
|
382 |
gr.Markdown(
|
383 |
"""
|
384 |
+
Login below using the Yamamoto internal<br>
|
385 |
username and password to access the full app.<br>
|
386 |
|
387 |
Once logged in, a new tab will appear named<br>
|