Spaces:
Runtime error
Runtime error
leonel1122
commited on
Commit
•
79f0aef
1
Parent(s):
49199dd
Update app.py
Browse files
app.py
CHANGED
@@ -175,132 +175,6 @@ def main():
|
|
175 |
#batch=True, max_batch_size=30
|
176 |
#max_batch_size=20
|
177 |
with gr.Blocks(batch=False) as myface:
|
178 |
-
with gr.Row():
|
179 |
-
with gr.Tab("Title"):
|
180 |
-
gr.HTML(""" <title>Maximum Diffusion</title><div style="text-align: center; max-width: 1500px; margin: 0 auto;">
|
181 |
-
<div
|
182 |
-
style="
|
183 |
-
display: inline-flex;
|
184 |
-
align-items: center;
|
185 |
-
gap: 0.8rem;
|
186 |
-
font-size: 1.75rem;
|
187 |
-
margin-bottom: 10px;
|
188 |
-
line-height: 1em;
|
189 |
-
"
|
190 |
-
>
|
191 |
-
<h1 style="font-weight: 1200; margin-top: 9px;">
|
192 |
-
Maximum Diffusion
|
193 |
-
</h1>
|
194 |
-
</div>
|
195 |
-
<br>
|
196 |
-
<br>
|
197 |
-
<p style="margin-bottom: 10px;font-size: 94%;font-weight: 100;line-height: 1.5em;">
|
198 |
-
Text to Image Model Comparison Space - CPU
|
199 |
-
</p><br><br>
|
200 |
-
<p style="margin-bottom: 10px;font-size: 94%;font-weight: 100;line-height: 1.5em;">
|
201 |
-
Freaky Fast, when it's fresh<br>
|
202 |
-
Try a Mirror, or DIY for Maximum Diffusion in minimum time.
|
203 |
-
</p><br>
|
204 |
-
|
205 |
-
|
206 |
-
</div>
|
207 |
-
""")
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
with gr.Tab("Description"):
|
212 |
-
gr.HTML("""<div style="text-align:center;">
|
213 |
-
<h4>Enter your Prompt into the "Short Prompt" box and click "Magic Prompt" to load a prettified version of your prompt<br>
|
214 |
-
When you are satisfied with the prompt that is in the "Text to Image" box, click "Launch" to load the Models.<br><br>
|
215 |
-
Images load faster with a simpler prompt.<br>
|
216 |
-
Most images should load within 2 minutes.<br>
|
217 |
-
Some models become stuck on certain prompts, and refreshing the page seems to fix it.<br><br>
|
218 |
-
Not responsible for content, use at your own risk.
|
219 |
-
|
220 |
-
</h4>
|
221 |
-
</div>""")
|
222 |
-
with gr.Tab("DIY"):
|
223 |
-
gr.HTML("""<div style="text-align:Left;">
|
224 |
-
<h4>Copy/Paste this code in your app.py file<br><br>
|
225 |
-
|
226 |
-
import gradio as gr<br>
|
227 |
-
max_d=gr.Interface.load("spaces/Omnibus/maximum_diffusion")<br>
|
228 |
-
max_d.launch()<br>
|
229 |
-
</h4>
|
230 |
-
</div>""")
|
231 |
-
|
232 |
-
with gr.Tab("Mirrors"):
|
233 |
-
gr.HTML("""<div style="text-align:center;vertical-align:center;">
|
234 |
-
<h4>Queue loading slow? Try a Mirror:<br><br>
|
235 |
-
<a href="https://huggingface.co/spaces/Omnibus/maximum-diffusion-light">Maximum Diffusion Light 1</a><br>
|
236 |
-
<p><a href="https://huggingface.co/spaces/Omnibus/maximum-diffusion-light-1">Maximum Diffusion Light 2</a><br>
|
237 |
-
<p><a href="https://huggingface.co/spaces/Omnibus/maximum-diffusion-light-2">Maximum Diffusion Light 3</a>
|
238 |
-
|
239 |
-
|
240 |
-
</h4>
|
241 |
-
</div>""")
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
with gr.Tab("Credits"):
|
250 |
-
with gr.Row():
|
251 |
-
gr.Column()
|
252 |
-
with gr.Column(style="text-align:left;"):
|
253 |
-
gr.HTML("""
|
254 |
-
<div style="vertical-align:center">
|
255 |
-
<br>
|
256 |
-
<p>I learned everything I know from:
|
257 |
-
<p><a href="https://huggingface.co/spaces/anzorq/finetuned_diffusion">Finetuned Diffusion</a></p>
|
258 |
-
<p><a href="https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion">Magic Prompt Stable Diffusion</a></p>
|
259 |
-
<p><a href="https://huggingface.co/spaces/huggingface-projects/magic-diffusion">Magic Diffusion</a></p>
|
260 |
-
|
261 |
-
<p>Models by <a href="https://huggingface.co/Gustavosta">@Gustavosta</a>, <a href="https://twitter.com/haruu1367">@haruu1367</a>, <a href="https://twitter.com/DGSpitzer">@Helixngc7293</a>, <a href="https://twitter.com/dal_mack">@dal_mack</a>, <a href="https://twitter.com/prompthero">@prompthero</a> and others.</p>
|
262 |
-
</div>
|
263 |
-
""")
|
264 |
-
gr.Column()
|
265 |
-
|
266 |
-
|
267 |
-
with gr.Tab("Tools"):
|
268 |
-
with gr.Tab("View"):
|
269 |
-
with gr.Column(style="width=50%, height=70%"):
|
270 |
-
gr.Pil(label="Crop")
|
271 |
-
with gr.Column(style="width=50%, height=70%"):
|
272 |
-
gr.Pil(label="Crop")
|
273 |
-
|
274 |
-
|
275 |
-
with gr.Tab("Draw"):
|
276 |
-
with gr.Column(style="width=50%, height=70%"):
|
277 |
-
gr.Pil(label="Crop")
|
278 |
-
with gr.Column(style="width=50%, height=70%"):
|
279 |
-
gr.Pil(label="Draw")
|
280 |
-
|
281 |
-
|
282 |
-
gr.ImagePaint(label="Draw")
|
283 |
-
|
284 |
-
with gr.Tab("Text"):
|
285 |
-
with gr.Row():
|
286 |
-
|
287 |
-
with gr.Column(scale=50):
|
288 |
-
gr.Textbox(label="", lines=8, interactive=True)
|
289 |
-
|
290 |
-
|
291 |
-
with gr.Column(scale=50):
|
292 |
-
gr.Textbox(label="", lines=8, interactive=True)
|
293 |
-
|
294 |
-
with gr.Tab("Color Picker"):
|
295 |
-
with gr.Row():
|
296 |
-
|
297 |
-
with gr.Column(scale=50):
|
298 |
-
gr.ColorPicker(label="Color", interactive=True)
|
299 |
-
|
300 |
-
|
301 |
-
with gr.Column(scale=50):
|
302 |
-
gr.ImagePaint(label="Draw", interactive=True)
|
303 |
-
|
304 |
|
305 |
|
306 |
with gr.Row():
|
|
|
175 |
#batch=True, max_batch_size=30
|
176 |
#max_batch_size=20
|
177 |
with gr.Blocks(batch=False) as myface:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
|
180 |
with gr.Row():
|