ehristoforu commited on
Commit
5533ca9
1 Parent(s): 11687df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +53 -0
app.py CHANGED
@@ -104,6 +104,59 @@ def flip_text(prompt, negative_prompt, steps, cfg_scale, width, height, seed):
104
 
105
 
106
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  with gr.Row():
108
  with gr.Column(scale=1):
109
  gr.HTML(value="""<h1><center>Fast SDXL on <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" target="_blank">stabilityai/stable-diffusion-xl-base-1.0</a>""")
 
104
 
105
 
106
  with gr.Blocks() as demo:
107
+ gr.HTML(
108
+ """
109
+ <div style="text-align: center; margin: 0 auto;">
110
+ <div
111
+ style="
112
+ display: inline-flex;
113
+ align-items: center;
114
+ gap: 0.8rem;
115
+ font-size: 1.75rem;
116
+ "
117
+ >
118
+ <svg
119
+ width="0.65em"
120
+ height="0.65em"
121
+ viewBox="0 0 115 115"
122
+ fill="none"
123
+ xmlns="http://www.w3.org/2000/svg"
124
+ >
125
+ <rect width="23" height="23" fill="white"></rect>
126
+ <rect y="69" width="23" height="23" fill="white"></rect>
127
+ <rect x="23" width="23" height="23" fill="#AEAEAE"></rect>
128
+ <rect x="23" y="69" width="23" height="23" fill="#AEAEAE"></rect>
129
+ <rect x="46" width="23" height="23" fill="white"></rect>
130
+ <rect x="46" y="69" width="23" height="23" fill="white"></rect>
131
+ <rect x="69" width="23" height="23" fill="black"></rect>
132
+ <rect x="69" y="69" width="23" height="23" fill="black"></rect>
133
+ <rect x="92" width="23" height="23" fill="#D9D9D9"></rect>
134
+ <rect x="92" y="69" width="23" height="23" fill="#AEAEAE"></rect>
135
+ <rect x="115" y="46" width="23" height="23" fill="white"></rect>
136
+ <rect x="115" y="115" width="23" height="23" fill="white"></rect>
137
+ <rect x="115" y="69" width="23" height="23" fill="#D9D9D9"></rect>
138
+ <rect x="92" y="46" width="23" height="23" fill="#AEAEAE"></rect>
139
+ <rect x="92" y="115" width="23" height="23" fill="#AEAEAE"></rect>
140
+ <rect x="92" y="69" width="23" height="23" fill="white"></rect>
141
+ <rect x="69" y="46" width="23" height="23" fill="white"></rect>
142
+ <rect x="69" y="115" width="23" height="23" fill="white"></rect>
143
+ <rect x="69" y="69" width="23" height="23" fill="#D9D9D9"></rect>
144
+ <rect x="46" y="46" width="23" height="23" fill="black"></rect>
145
+ <rect x="46" y="115" width="23" height="23" fill="black"></rect>
146
+ <rect x="46" y="69" width="23" height="23" fill="black"></rect>
147
+ <rect x="23" y="46" width="23" height="23" fill="#D9D9D9"></rect>
148
+ <rect x="23" y="115" width="23" height="23" fill="#AEAEAE"></rect>
149
+ <rect x="23" y="69" width="23" height="23" fill="black"></rect>
150
+ </svg>
151
+ <h1 style="font-weight: 900; margin-bottom: 7px;margin-top:5px">
152
+ Fast Stable Diffusion XL on TPU v5e ⚡
153
+ </h1>
154
+ </div>
155
+ <p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
156
+ SDXL is a high quality text-to-image model from Stability AI. This demo is running on <a style="text-decoration: underline;" href="https://cloud.google.com/blog/products/compute/announcing-cloud-tpu-v5e-and-a3-gpus-in-ga">Google Cloud TPU v5e</a>, to achieve efficient and cost-effective inference of 1024×1024 images. <a href="https://hf.co/blog/sdxl_jax" target="_blank">How does it work?</a>
157
+ </p>
158
+ </div>
159
+ """)
160
  with gr.Row():
161
  with gr.Column(scale=1):
162
  gr.HTML(value="""<h1><center>Fast SDXL on <a href="https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0" target="_blank">stabilityai/stable-diffusion-xl-base-1.0</a>""")