Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,6 +123,7 @@ def inference(
|
|
123 |
return out.images[0] # type: ignore
|
124 |
|
125 |
|
|
|
126 |
with gr.Blocks(css="""
|
127 |
body {
|
128 |
background-color: #000000;
|
@@ -156,46 +157,35 @@ with gr.Blocks(css="""
|
|
156 |
.gr-form-label {
|
157 |
color: #ff0000;
|
158 |
}
|
159 |
-
#markdown-content {
|
160 |
-
text-align: center;
|
161 |
-
width: 80%; /* Adjust as needed */
|
162 |
-
margin: 0 auto;
|
163 |
-
display: flex;
|
164 |
-
flex-direction: column;
|
165 |
-
align-items: center;
|
166 |
-
justify-content: center;
|
167 |
-
min-height: 100vh;
|
168 |
-
}
|
169 |
-
#markdown-content h1, #markdown-content h2, #markdown-content h3 {
|
170 |
-
color: #ff0000;
|
171 |
-
}
|
172 |
""") as blocks:
|
173 |
gr.Markdown(
|
174 |
"""
|
|
|
|
|
175 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/_VyYxp5qE_nRZ_LJqBxmL.webp" alt="Yamamoto Logo" style="max-width: 200px; margin-bottom: 20px;">
|
176 |
|
177 |
-
#
|
178 |
|
179 |
-
|
180 |
|
181 |
Welcome to Yamamoto's innovative QR Code Art Generator! This cutting-edge tool empowers our creative team to craft
|
182 |
visually stunning, on-brand QR codes that perfectly blend functionality with artistic expression.
|
183 |
|
184 |
-
|
185 |
|
186 |
1. **Enter Your QR Code Content**: Start by inputting the URL or text for your QR code.
|
187 |
2. **Craft Your Prompt**: Describe the artistic style or theme you envision for your QR code.
|
188 |
3. **Fine-tune with Advanced Settings**: Adjust parameters to perfect your creation (see tips below).
|
189 |
4. **Generate and Iterate**: Click 'Run' to create your art, then refine as needed.
|
190 |
|
191 |
-
|
192 |
|
193 |
- **Artistic Freedom**: Set between 0.8 and 0.95 for a balance of creativity and scannability.
|
194 |
- **QR Code Visibility**: Aim for 0.6 to 2.0 to ensure your code is both artistic and functional.
|
195 |
- **Prompt Crafting**: Use vivid, specific descriptions that align with your brand identity.
|
196 |
- **Experimentation**: Don't hesitate to try different settings and prompts to find your perfect style!
|
197 |
|
198 |
-
|
199 |
|
200 |
- "A serene Japanese garden with cherry blossoms and a koi pond"
|
201 |
- "A futuristic cityscape with neon lights and flying cars"
|
@@ -204,6 +194,8 @@ with gr.Blocks(css="""
|
|
204 |
|
205 |
Remember, the magic lies in the details of your prompt and the fine-tuning of your settings.
|
206 |
Happy creating!
|
|
|
|
|
207 |
""",
|
208 |
elem_id="markdown-content"
|
209 |
)
|
|
|
123 |
return out.images[0] # type: ignore
|
124 |
|
125 |
|
126 |
+
|
127 |
with gr.Blocks(css="""
|
128 |
body {
|
129 |
background-color: #000000;
|
|
|
157 |
.gr-form-label {
|
158 |
color: #ff0000;
|
159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
""") as blocks:
|
161 |
gr.Markdown(
|
162 |
"""
|
163 |
+
<div style="text-align: center;">
|
164 |
+
|
165 |
<img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/_VyYxp5qE_nRZ_LJqBxmL.webp" alt="Yamamoto Logo" style="max-width: 200px; margin-bottom: 20px;">
|
166 |
|
167 |
+
<h1 style=color: #ff0000;">π¨ Yamamoto QR Code Art Generator</h1>
|
168 |
|
169 |
+
<h2 style=color: #ff0000;">Transform Your QR Codes into Brand Masterpieces</h2>
|
170 |
|
171 |
Welcome to Yamamoto's innovative QR Code Art Generator! This cutting-edge tool empowers our creative team to craft
|
172 |
visually stunning, on-brand QR codes that perfectly blend functionality with artistic expression.
|
173 |
|
174 |
+
<h2 color: #ff0000;">π How It Works:</h2>
|
175 |
|
176 |
1. **Enter Your QR Code Content**: Start by inputting the URL or text for your QR code.
|
177 |
2. **Craft Your Prompt**: Describe the artistic style or theme you envision for your QR code.
|
178 |
3. **Fine-tune with Advanced Settings**: Adjust parameters to perfect your creation (see tips below).
|
179 |
4. **Generate and Iterate**: Click 'Run' to create your art, then refine as needed.
|
180 |
|
181 |
+
<h2 color: #ff0000;">π Tips for Spectacular Results:</h2>
|
182 |
|
183 |
- **Artistic Freedom**: Set between 0.8 and 0.95 for a balance of creativity and scannability.
|
184 |
- **QR Code Visibility**: Aim for 0.6 to 2.0 to ensure your code is both artistic and functional.
|
185 |
- **Prompt Crafting**: Use vivid, specific descriptions that align with your brand identity.
|
186 |
- **Experimentation**: Don't hesitate to try different settings and prompts to find your perfect style!
|
187 |
|
188 |
+
<h2 color: #ff0000;">π Prompt Ideas to Spark Your Creativity:</h2>
|
189 |
|
190 |
- "A serene Japanese garden with cherry blossoms and a koi pond"
|
191 |
- "A futuristic cityscape with neon lights and flying cars"
|
|
|
194 |
|
195 |
Remember, the magic lies in the details of your prompt and the fine-tuning of your settings.
|
196 |
Happy creating!
|
197 |
+
|
198 |
+
</div>
|
199 |
""",
|
200 |
elem_id="markdown-content"
|
201 |
)
|