Spaces:
Runtime error
Runtime error
Commit
Β·
c107196
1
Parent(s):
7b030d7
Update app.py
Browse filesKill styles and remove some text
app.py
CHANGED
|
@@ -305,7 +305,8 @@ css = '''
|
|
| 305 |
all: unset;
|
| 306 |
}
|
| 307 |
'''
|
| 308 |
-
examples = ["a <cat-toy> in <madhubani-art> style", "a <line-art> style mecha robot", "a piano being played by <bonzi>", "Candid photo of <cheburashka>, high resolution photo, trending on artstation, interior design"]
|
|
|
|
| 309 |
|
| 310 |
with gr.Blocks(css=css) as demo:
|
| 311 |
state = gr.Variable({
|
|
@@ -321,48 +322,15 @@ with gr.Blocks(css=css) as demo:
|
|
| 321 |
state[i] = True
|
| 322 |
checkbox_states[i] = True
|
| 323 |
gr.HTML('''
|
| 324 |
-
<div
|
| 325 |
<div
|
| 326 |
-
|
| 327 |
display: inline-flex;
|
| 328 |
align-items: center;
|
| 329 |
gap: 0.8rem;
|
| 330 |
font-size: 1.75rem;
|
| 331 |
"
|
| 332 |
>
|
| 333 |
-
<svg
|
| 334 |
-
width="0.65em"
|
| 335 |
-
height="0.65em"
|
| 336 |
-
viewBox="0 0 115 115"
|
| 337 |
-
fill="none"
|
| 338 |
-
xmlns="http://www.w3.org/2000/svg"
|
| 339 |
-
>
|
| 340 |
-
<rect width="23" height="23" fill="white"></rect>
|
| 341 |
-
<rect y="69" width="23" height="23" fill="white"></rect>
|
| 342 |
-
<rect x="23" width="23" height="23" fill="#AEAEAE"></rect>
|
| 343 |
-
<rect x="23" y="69" width="23" height="23" fill="#AEAEAE"></rect>
|
| 344 |
-
<rect x="46" width="23" height="23" fill="white"></rect>
|
| 345 |
-
<rect x="46" y="69" width="23" height="23" fill="white"></rect>
|
| 346 |
-
<rect x="69" width="23" height="23" fill="black"></rect>
|
| 347 |
-
<rect x="69" y="69" width="23" height="23" fill="black"></rect>
|
| 348 |
-
<rect x="92" width="23" height="23" fill="#D9D9D9"></rect>
|
| 349 |
-
<rect x="92" y="69" width="23" height="23" fill="#AEAEAE"></rect>
|
| 350 |
-
<rect x="115" y="46" width="23" height="23" fill="white"></rect>
|
| 351 |
-
<rect x="115" y="115" width="23" height="23" fill="white"></rect>
|
| 352 |
-
<rect x="115" y="69" width="23" height="23" fill="#D9D9D9"></rect>
|
| 353 |
-
<rect x="92" y="46" width="23" height="23" fill="#AEAEAE"></rect>
|
| 354 |
-
<rect x="92" y="115" width="23" height="23" fill="#AEAEAE"></rect>
|
| 355 |
-
<rect x="92" y="69" width="23" height="23" fill="white"></rect>
|
| 356 |
-
<rect x="69" y="46" width="23" height="23" fill="white"></rect>
|
| 357 |
-
<rect x="69" y="115" width="23" height="23" fill="white"></rect>
|
| 358 |
-
<rect x="69" y="69" width="23" height="23" fill="#D9D9D9"></rect>
|
| 359 |
-
<rect x="46" y="46" width="23" height="23" fill="black"></rect>
|
| 360 |
-
<rect x="46" y="115" width="23" height="23" fill="black"></rect>
|
| 361 |
-
<rect x="46" y="69" width="23" height="23" fill="black"></rect>
|
| 362 |
-
<rect x="23" y="46" width="23" height="23" fill="#D9D9D9"></rect>
|
| 363 |
-
<rect x="23" y="115" width="23" height="23" fill="#AEAEAE"></rect>
|
| 364 |
-
<rect x="23" y="69" width="23" height="23" fill="black"></rect>
|
| 365 |
-
</svg>
|
| 366 |
<h1 _style="font-weight: 900; margin-bottom: 7px;">
|
| 367 |
π§βπ Astronaut Horse Concept Loader
|
| 368 |
</h1>
|
|
@@ -385,7 +353,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 385 |
''')
|
| 386 |
with gr.Row():
|
| 387 |
with gr.Column():
|
| 388 |
-
gr.Markdown(f"
|
| 389 |
with gr.Row():
|
| 390 |
image_blocks = []
|
| 391 |
#for i, model in enumerate(models):
|
|
@@ -403,7 +371,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 403 |
rounded=(True, False, False, True),
|
| 404 |
container=False,
|
| 405 |
)
|
| 406 |
-
btn = gr.Button("
|
| 407 |
margin=False,
|
| 408 |
rounded=(False, True, True, False),
|
| 409 |
)
|
|
|
|
| 305 |
all: unset;
|
| 306 |
}
|
| 307 |
'''
|
| 308 |
+
# examples = ["a <cat-toy> in <madhubani-art> style", "a <line-art> style mecha robot", "a piano being played by <bonzi>", "Candid photo of <cheburashka>, high resolution photo, trending on artstation, interior design"]
|
| 309 |
+
examples = []
|
| 310 |
|
| 311 |
with gr.Blocks(css=css) as demo:
|
| 312 |
state = gr.Variable({
|
|
|
|
| 322 |
state[i] = True
|
| 323 |
checkbox_states[i] = True
|
| 324 |
gr.HTML('''
|
| 325 |
+
<div _style="text-align: center; max-width: 720px; margin: 0 auto;">
|
| 326 |
<div
|
| 327 |
+
_style="
|
| 328 |
display: inline-flex;
|
| 329 |
align-items: center;
|
| 330 |
gap: 0.8rem;
|
| 331 |
font-size: 1.75rem;
|
| 332 |
"
|
| 333 |
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 334 |
<h1 _style="font-weight: 900; margin-bottom: 7px;">
|
| 335 |
π§βπ Astronaut Horse Concept Loader
|
| 336 |
</h1>
|
|
|
|
| 353 |
''')
|
| 354 |
with gr.Row():
|
| 355 |
with gr.Column():
|
| 356 |
+
gr.Markdown(f"")
|
| 357 |
with gr.Row():
|
| 358 |
image_blocks = []
|
| 359 |
#for i, model in enumerate(models):
|
|
|
|
| 371 |
rounded=(True, False, False, True),
|
| 372 |
container=False,
|
| 373 |
)
|
| 374 |
+
btn = gr.Button("generate image",elem_id="run_btn").style(
|
| 375 |
margin=False,
|
| 376 |
rounded=(False, True, True, False),
|
| 377 |
)
|