Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,94 +125,43 @@ def inference(
|
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
-
with gr.Blocks(
|
| 129 |
-
/* Global styles */
|
| 130 |
-
body, .gradio-container, #component-0 {
|
| 131 |
-
background-color: #1a1a1a !important;
|
| 132 |
-
color: #e0e0e0 !important;
|
| 133 |
-
}
|
| 134 |
-
|
| 135 |
-
/* Form and input styles */
|
| 136 |
-
.gr-form, .gr-box, .gr-panel {
|
| 137 |
-
background-color: #2a2a2a !important;
|
| 138 |
-
border-color: #444444 !important;
|
| 139 |
-
}
|
| 140 |
-
|
| 141 |
-
/* Button styles */
|
| 142 |
-
.gr-button-primary {
|
| 143 |
-
background-color: #ff4500 !important;
|
| 144 |
-
border-color: #ff4500 !important;
|
| 145 |
-
color: white !important;
|
| 146 |
-
}
|
| 147 |
-
|
| 148 |
-
.gr-button-primary:hover {
|
| 149 |
-
background-color: #ff6347 !important;
|
| 150 |
-
border-color: #ff6347 !important;
|
| 151 |
-
}
|
| 152 |
-
|
| 153 |
-
/* Input and select styles */
|
| 154 |
-
.gr-input, .gr-select, .gr-textarea {
|
| 155 |
-
background-color: #333333 !important;
|
| 156 |
-
border-color: #555555 !important;
|
| 157 |
-
color: #ffffff !important;
|
| 158 |
-
}
|
| 159 |
-
|
| 160 |
-
/* Label styles */
|
| 161 |
-
.gr-form-label, .gr-label {
|
| 162 |
-
color: #ff4500 !important;
|
| 163 |
-
}
|
| 164 |
-
|
| 165 |
-
/* Slider styles */
|
| 166 |
-
.gr-slider {
|
| 167 |
-
background-color: #444444 !important;
|
| 168 |
-
}
|
| 169 |
-
|
| 170 |
-
.gr-slider-handle {
|
| 171 |
-
background-color: #ff4500 !important;
|
| 172 |
-
}
|
| 173 |
-
|
| 174 |
-
/* Ensure text is visible */
|
| 175 |
-
p, h1, h2, h3, span {
|
| 176 |
-
color: #e0e0e0 !important;
|
| 177 |
-
}
|
| 178 |
-
""") as blocks:
|
| 179 |
gr.Markdown(
|
| 180 |
"""
|
| 181 |
-

|
| 182 |
|
| 183 |
-
# π¨ Yamamoto QR Code Art Generator
|
| 184 |
|
| 185 |
-
## Transform Your QR Codes into Brand Masterpieces
|
| 186 |
|
| 187 |
-
Welcome to Yamamoto's innovative QR Code Art Generator! This cutting-edge tool empowers our creative team to craft
|
| 188 |
-
visually stunning, on-brand QR codes that perfectly blend functionality with artistic expression.
|
| 189 |
|
| 190 |
-
## π How It Works:
|
| 191 |
|
| 192 |
-
1. **Enter Your QR Code Content**: Start by inputting the URL or text for your QR code.
|
| 193 |
-
2. **Craft Your Prompt**: Describe the artistic style or theme you envision for your QR code.
|
| 194 |
-
3. **Fine-tune with Advanced Settings**: Adjust parameters to perfect your creation (see tips below).
|
| 195 |
-
4. **Generate and Iterate**: Click 'Run' to create your art, then refine as needed.
|
| 196 |
|
| 197 |
-
## π Tips for Spectacular Results:
|
| 198 |
|
| 199 |
-
- **Artistic Freedom**: Set between 0.8 and 0.95 for a balance of creativity and scannability.
|
| 200 |
-
- **QR Code Visibility**: Aim for 0.6 to 2.0 to ensure your code is both artistic and functional.
|
| 201 |
-
- **Prompt Crafting**: Use vivid, specific descriptions that align with your brand identity.
|
| 202 |
-
- **Experimentation**: Don't hesitate to try different settings and prompts to find your perfect style!
|
| 203 |
|
| 204 |
-
## π Prompt Ideas to Spark Your Creativity:
|
| 205 |
|
| 206 |
-
- "A serene Japanese garden with cherry blossoms and a koi pond"
|
| 207 |
-
- "A futuristic cityscape with neon lights and flying cars"
|
| 208 |
-
- "An abstract painting with swirling colors and geometric shapes"
|
| 209 |
-
- "A vintage-style travel poster featuring iconic landmarks"
|
| 210 |
|
| 211 |
-
Remember, the magic lies in the details of your prompt and the fine-tuning of your settings.
|
| 212 |
-
Happy creating!
|
| 213 |
-
"""
|
| 214 |
)
|
| 215 |
-
|
| 216 |
with gr.Row():
|
| 217 |
with gr.Column():
|
| 218 |
qr_code_content = gr.Textbox(
|
|
|
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
+
with gr.Blocks(theme=gr.themes.Monochrome()) as blocks:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
gr.Markdown(
|
| 130 |
"""
|
| 131 |
+

|
| 132 |
|
| 133 |
+
# π¨ Yamamoto QR Code Art Generator
|
| 134 |
|
| 135 |
+
## Transform Your QR Codes into Brand Masterpieces
|
| 136 |
|
| 137 |
+
Welcome to Yamamoto's innovative QR Code Art Generator! This cutting-edge tool empowers our creative team to craft
|
| 138 |
+
visually stunning, on-brand QR codes that perfectly blend functionality with artistic expression.
|
| 139 |
|
| 140 |
+
## π How It Works:
|
| 141 |
|
| 142 |
+
1. **Enter Your QR Code Content**: Start by inputting the URL or text for your QR code.
|
| 143 |
+
2. **Craft Your Prompt**: Describe the artistic style or theme you envision for your QR code.
|
| 144 |
+
3. **Fine-tune with Advanced Settings**: Adjust parameters to perfect your creation (see tips below).
|
| 145 |
+
4. **Generate and Iterate**: Click 'Run' to create your art, then refine as needed.
|
| 146 |
|
| 147 |
+
## π Tips for Spectacular Results:
|
| 148 |
|
| 149 |
+
- **Artistic Freedom**: Set between 0.8 and 0.95 for a balance of creativity and scannability.
|
| 150 |
+
- **QR Code Visibility**: Aim for 0.6 to 2.0 to ensure your code is both artistic and functional.
|
| 151 |
+
- **Prompt Crafting**: Use vivid, specific descriptions that align with your brand identity.
|
| 152 |
+
- **Experimentation**: Don't hesitate to try different settings and prompts to find your perfect style!
|
| 153 |
|
| 154 |
+
## π Prompt Ideas to Spark Your Creativity:
|
| 155 |
|
| 156 |
+
- "A serene Japanese garden with cherry blossoms and a koi pond"
|
| 157 |
+
- "A futuristic cityscape with neon lights and flying cars"
|
| 158 |
+
- "An abstract painting with swirling colors and geometric shapes"
|
| 159 |
+
- "A vintage-style travel poster featuring iconic landmarks"
|
| 160 |
|
| 161 |
+
Remember, the magic lies in the details of your prompt and the fine-tuning of your settings.
|
| 162 |
+
Happy creating!
|
| 163 |
+
"""
|
| 164 |
)
|
|
|
|
| 165 |
with gr.Row():
|
| 166 |
with gr.Column():
|
| 167 |
qr_code_content = gr.Textbox(
|