Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -281,67 +281,163 @@ class Stage(Enum):
|
|
281 |
FULL = "full"
|
282 |
|
283 |
css="""#disp_image {
|
284 |
-
text-align: center;
|
285 |
}
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
#duplicate-button {
|
295 |
margin-left: auto;
|
296 |
color: #fff;
|
297 |
background: #1565c0;
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
"""
|
346 |
block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
|
347 |
with block:
|
|
|
281 |
FULL = "full"
|
282 |
|
283 |
css="""#disp_image {
|
284 |
+
text-align: center;
|
285 |
}
|
286 |
+
|
287 |
+
#share-btn-container {
|
288 |
+
padding-left: 0.5rem !important;
|
289 |
+
padding-right: 0.5rem !important;
|
290 |
+
background-color: #000000;
|
291 |
+
justify-content: center;
|
292 |
+
align-items: center;
|
293 |
+
border-radius: 9999px !important;
|
294 |
+
max-width: 13rem;
|
295 |
+
margin-left: auto;
|
296 |
+
}
|
297 |
+
|
298 |
+
#share-btn-container > div {
|
299 |
+
flex-direction: row;
|
300 |
+
background: black;
|
301 |
+
align-items: center;
|
302 |
+
}
|
303 |
+
|
304 |
+
#share-btn-container:hover {
|
305 |
+
background-color: #060606;
|
306 |
+
}
|
307 |
+
|
308 |
+
#share-btn {
|
309 |
+
all: initial;
|
310 |
+
color: #ffffff;
|
311 |
+
font-weight: 600;
|
312 |
+
cursor: pointer;
|
313 |
+
font-family: 'IBM Plex Sans', sans-serif;
|
314 |
+
margin-left: 0.5rem !important;
|
315 |
+
padding-top: 0.5rem !important;
|
316 |
+
padding-bottom: 0.5rem !important;
|
317 |
+
right: 0;
|
318 |
+
}
|
319 |
+
|
320 |
+
#share-btn * {
|
321 |
+
all: unset;
|
322 |
+
}
|
323 |
+
|
324 |
+
#share-btn-container div:nth-child(-n+2) {
|
325 |
+
width: auto !important;
|
326 |
+
min-height: 0px !important;
|
327 |
+
}
|
328 |
+
|
329 |
+
#share-btn-container .wrap {
|
330 |
+
display: none !important;
|
331 |
+
}
|
332 |
+
|
333 |
+
#share-btn-container.hidden {
|
334 |
+
display: none !important;
|
335 |
+
}
|
336 |
+
|
337 |
#duplicate-button {
|
338 |
margin-left: auto;
|
339 |
color: #fff;
|
340 |
background: #1565c0;
|
341 |
+
}
|
342 |
+
|
343 |
+
body {
|
344 |
+
font-family: Arial, sans-serif;
|
345 |
+
background-color: #f4f4f9;
|
346 |
+
margin: 0;
|
347 |
+
padding: 0;
|
348 |
+
display: flex;
|
349 |
+
flex-direction: column;
|
350 |
+
justify-content: center;
|
351 |
+
align-items: center;
|
352 |
+
min-height: 100vh;
|
353 |
+
color: #333;
|
354 |
+
}
|
355 |
+
|
356 |
+
.custom-button {
|
357 |
+
background: linear-gradient(271.15deg, #00C7E2 0.27%, #00CC6A 48.52%, #70FF00 102.07%);
|
358 |
+
font-size: 30px;
|
359 |
+
color: white;
|
360 |
+
padding: 10px 20px;
|
361 |
+
border: none;
|
362 |
+
border-radius: 5px;
|
363 |
+
cursor: pointer;
|
364 |
+
transition: opacity 0.3s ease;
|
365 |
+
}
|
366 |
+
|
367 |
+
.custom-button:hover {
|
368 |
+
opacity: 0.8;
|
369 |
+
}
|
370 |
+
|
371 |
+
.custom-title {
|
372 |
+
font-size: 36px;
|
373 |
+
background: linear-gradient(271.15deg, #00C7E2 0.27%, #12C06D 102.07%);
|
374 |
+
-webkit-background-clip: text;
|
375 |
+
-webkit-text-fill-color: transparent;
|
376 |
+
font-weight: bold;
|
377 |
+
text-align: center;
|
378 |
+
margin-bottom: 20px;
|
379 |
+
}
|
380 |
+
|
381 |
+
h1 {
|
382 |
+
color: #222222;
|
383 |
+
}
|
384 |
+
|
385 |
+
a {
|
386 |
+
color: #4a90e2;
|
387 |
+
text-decoration: none;
|
388 |
+
font-weight: bold;
|
389 |
+
}
|
390 |
+
|
391 |
+
a:hover {
|
392 |
+
text-decoration: underline;
|
393 |
+
}
|
394 |
+
|
395 |
+
.emoji {
|
396 |
+
font-size: 1.5em;
|
397 |
+
}
|
398 |
+
|
399 |
+
@media (max-width: 768px) {
|
400 |
+
.custom-button {
|
401 |
+
font-size: 20px;
|
402 |
+
padding: 8px 16px;
|
403 |
+
}
|
404 |
+
|
405 |
+
.custom-title {
|
406 |
+
font-size: 28px;
|
407 |
+
}
|
408 |
+
|
409 |
+
#disp_image, .container {
|
410 |
+
padding: 0 1rem;
|
411 |
+
}
|
412 |
+
|
413 |
+
h1 {
|
414 |
+
font-size: 24px;
|
415 |
+
}
|
416 |
+
}
|
417 |
+
|
418 |
+
@media (max-width: 480px) {
|
419 |
+
.custom-button {
|
420 |
+
font-size: 16px;
|
421 |
+
padding: 6px 12px;
|
422 |
+
}
|
423 |
+
|
424 |
+
.custom-title {
|
425 |
+
font-size: 22px;
|
426 |
+
}
|
427 |
+
|
428 |
+
.container {
|
429 |
+
padding: 0 0.5rem;
|
430 |
+
}
|
431 |
+
|
432 |
+
h1 {
|
433 |
+
font-size: 20px;
|
434 |
+
}
|
435 |
+
|
436 |
+
#share-btn-container {
|
437 |
+
max-width: 100%;
|
438 |
+
padding: 0.5rem;
|
439 |
+
}
|
440 |
+
}
|
441 |
"""
|
442 |
block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
|
443 |
with block:
|