RamAnanth1 commited on
Commit
9fc7b28
·
1 Parent(s): 77fe809

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +60 -3
app.py CHANGED
@@ -174,9 +174,66 @@ css = """
174
  """
175
 
176
  with gr.Blocks(css = css) as demo:
177
- gr.Markdown("# Stable Diffusion XL")
178
- gr.Markdown("<p>This is an unoffical demo for Stable Diffusion XL, which is the latest stable diffusion model released by Stability AI. The main features include Next-level photorealism capabilities, image composition and face generation, use of shorter prompts to create descriptive imagery, greater capability to produce legible text and rich visuals and jaw-dropping aesthetics</p>")
179
- gr.Markdown(""" Please refer to [the official website](https://stability.ai/stable-diffusion) for further information""")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  api_key_input = gr.Textbox(type = "password", label = "Enter your StabilityAI API key here")
181
 
182
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
 
174
  """
175
 
176
  with gr.Blocks(css = css) as demo:
177
+ gr.HTML(
178
+ """
179
+ <div style="text-align: center; margin: 0 auto;">
180
+ <div
181
+ style="
182
+ display: inline-flex;
183
+ align-items: center;
184
+ gap: 0.8rem;
185
+ font-size: 1.75rem;
186
+ "
187
+ >
188
+ <svg
189
+ width="0.65em"
190
+ height="0.65em"
191
+ viewBox="0 0 115 115"
192
+ fill="none"
193
+ xmlns="http://www.w3.org/2000/svg"
194
+ >
195
+ <rect width="23" height="23" fill="white"></rect>
196
+ <rect y="69" width="23" height="23" fill="white"></rect>
197
+ <rect x="23" width="23" height="23" fill="#AEAEAE"></rect>
198
+ <rect x="23" y="69" width="23" height="23" fill="#AEAEAE"></rect>
199
+ <rect x="46" width="23" height="23" fill="white"></rect>
200
+ <rect x="46" y="69" width="23" height="23" fill="white"></rect>
201
+ <rect x="69" width="23" height="23" fill="black"></rect>
202
+ <rect x="69" y="69" width="23" height="23" fill="black"></rect>
203
+ <rect x="92" width="23" height="23" fill="#D9D9D9"></rect>
204
+ <rect x="92" y="69" width="23" height="23" fill="#AEAEAE"></rect>
205
+ <rect x="115" y="46" width="23" height="23" fill="white"></rect>
206
+ <rect x="115" y="115" width="23" height="23" fill="white"></rect>
207
+ <rect x="115" y="69" width="23" height="23" fill="#D9D9D9"></rect>
208
+ <rect x="92" y="46" width="23" height="23" fill="#AEAEAE"></rect>
209
+ <rect x="92" y="115" width="23" height="23" fill="#AEAEAE"></rect>
210
+ <rect x="92" y="69" width="23" height="23" fill="white"></rect>
211
+ <rect x="69" y="46" width="23" height="23" fill="white"></rect>
212
+ <rect x="69" y="115" width="23" height="23" fill="white"></rect>
213
+ <rect x="69" y="69" width="23" height="23" fill="#D9D9D9"></rect>
214
+ <rect x="46" y="46" width="23" height="23" fill="black"></rect>
215
+ <rect x="46" y="115" width="23" height="23" fill="black"></rect>
216
+ <rect x="46" y="69" width="23" height="23" fill="black"></rect>
217
+ <rect x="23" y="46" width="23" height="23" fill="#D9D9D9"></rect>
218
+ <rect x="23" y="115" width="23" height="23" fill="#AEAEAE"></rect>
219
+ <rect x="23" y="69" width="23" height="23" fill="black"></rect>
220
+ </svg>
221
+ <h1 style="font-weight: 900; margin-bottom: 7px;margin-top:5px">
222
+ Stable Diffusion XL Demo
223
+ </h1>
224
+ </div>
225
+ <p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
226
+ This is an unoffical demo for Stable Diffusion XL, which is the latest stable diffusion model released by Stability AI. The main features include Next-level photorealism capabilities, image composition and face generation, use of shorter prompts to create descriptive imagery, greater capability to produce legible text and rich visuals and jaw-dropping aesthetics. Please refer to
227
+ <a
228
+ href="https://stability.ai/stable-diffusion"
229
+ style="text-decoration: underline;"
230
+ target="_blank"
231
+ >the official website</a
232
+ >.</a> for further information
233
+ </p>
234
+ </div>
235
+ """
236
+ )
237
  api_key_input = gr.Textbox(type = "password", label = "Enter your StabilityAI API key here")
238
 
239
  with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):