Vivawaves commited on
Commit
3feb81e
·
1 Parent(s): c52842d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +633 -0
app.py CHANGED
@@ -179,6 +179,639 @@ def img2img(input_image, denoising, prompt, negative_prompt, model, steps, sampl
179
 
180
  css = """
181
  footer {visibility: hidden !important;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  """
183
 
184
  with gr.Blocks(css=css) as demo:
 
179
 
180
  css = """
181
  footer {visibility: hidden !important;}
182
+ #container{
183
+
184
+ margin: 0 auto;
185
+
186
+ max-width: 40rem;
187
+
188
+ }
189
+
190
+ #intro{
191
+
192
+ max-width: 100%;
193
+
194
+ text-align: center;
195
+
196
+ margin: 0 auto;
197
+
198
+ }
199
+
200
+ div.svelte-vt1mxs {
201
+
202
+ display: flex;
203
+
204
+ position: relative;
205
+
206
+ flex-direction: column
207
+
208
+ }
209
+
210
+ div.svelte-vt1mxs>*,div.svelte-vt1mxs>.form > * {
211
+
212
+ width: var(--size-full)
213
+
214
+ }
215
+
216
+ .gap.svelte-vt1mxs {
217
+
218
+ gap: var(--layout-gap)
219
+
220
+ }
221
+
222
+ .hide.svelte-vt1mxs {
223
+
224
+ display: none
225
+
226
+ }
227
+
228
+ .compact.svelte-vt1mxs>*,.compact.svelte-vt1mxs .box {
229
+
230
+ border-radius: 0
231
+
232
+ }
233
+
234
+ .compact.svelte-vt1mxs,.panel.svelte-vt1mxs {
235
+
236
+ border: solid var(--panel-border-width) var(--panel-border-color);
237
+
238
+ border-radius: var(--container-radius);
239
+
240
+ background: var(--panel-background-fill);
241
+
242
+ padding: var(--spacing-lg)
243
+
244
+ }
245
+
246
+ div#component-24 {
247
+
248
+ display: none;
249
+
250
+ }
251
+
252
+ div#component-8 {background: #00000024;border: 0;color: #ffffff;backdrop-filter: blur(20px);-webkit-backdrop-filter: blur(20px);border-width: 0 !important;}
253
+
254
+ span.md.svelte-9tftx4 {
255
+
256
+ display: none;
257
+
258
+ }
259
+
260
+ .empty.svelte-lk9eg8.large.unpadded_box {
261
+
262
+ background: none !important;
263
+
264
+ }
265
+
266
+ div#component-26 {
267
+
268
+ display: none;
269
+
270
+ }
271
+
272
+ div#component-7 {
273
+
274
+ background: none;
275
+
276
+ }
277
+
278
+ .wrap.default.full.svelte-119qaqt.hide {
279
+
280
+ background: none !important;
281
+
282
+ }
283
+
284
+ .styler.svelte-iyf88w {
285
+
286
+ background: none !important;
287
+
288
+ }
289
+
290
+ div#component-3 {
291
+
292
+ background: none !important;
293
+
294
+ border: 0;
295
+
296
+ }
297
+
298
+ input.scroll-hide.svelte-1f354aw {
299
+
300
+ overflow: hidden !important;
301
+
302
+ }
303
+
304
+ div#component-5 {
305
+
306
+ border-radius: 40px 0px 0px 40px;
307
+
308
+ background: black !important;
309
+
310
+ opacity: 0.9;
311
+
312
+ }
313
+
314
+ #component-6 {
315
+
316
+ border-radius: 0px 40px 40px 0px;
317
+
318
+ background: linear-gradient(358deg, #ff4d0080, #fff0);
319
+
320
+ color: #ffffffe3;
321
+
322
+ border: 2px #ffffffc2 dashed;
323
+
324
+ border-left: 0;
325
+
326
+ font-size: 30px;
327
+
328
+ letter-spacing:-1px;
329
+
330
+ position: relative;
331
+
332
+ z-index: 1;
333
+
334
+ backdrop-filter: blur(18px);
335
+
336
+ -webkit-backdrop-filter: blur(18px);
337
+
338
+ }
339
+
340
+ div#component-0 {
341
+
342
+ max-width: 100% !important;
343
+
344
+ }
345
+
346
+ .grid-wrap.svelte-1b19cri.fixed-height {
347
+
348
+ max-height: 100% !important;
349
+
350
+ overflow: auto;
351
+
352
+ }
353
+
354
+ footer.svelte-1ax1toq {
355
+
356
+ display: none !important;
357
+
358
+ }
359
+
360
+ input.scroll-hide.svelte-1f354aw {
361
+
362
+ font-size: 26px;
363
+
364
+ padding: 25px;
365
+
366
+ }
367
+
368
+ div#component-4 {
369
+
370
+ margin-top: 230px;
371
+
372
+ margin-bottom: 30px;
373
+
374
+ }
375
+
376
+ gradio-app {
377
+
378
+ background-color: transparent !important;
379
+
380
+ background: url(https://vivawaves.com/wavesweaveslogo.svg) top center no-repeat !important;
381
+
382
+ margin-top: 77px;
383
+
384
+ }
385
+
386
+ label.svelte-1f354aw {
387
+
388
+ }
389
+
390
+ .styler.svelte-iyf88w {
391
+
392
+ }
393
+
394
+ body {
395
+
396
+ background: url(https://vivawaves.com/vivatodaybg2.jpg);
397
+
398
+ background-size: cover;
399
+
400
+ }
401
+
402
+ img.svelte-1b19cri {}
403
+
404
+ .preview.svelte-1b19cri {
405
+
406
+ background: #0000004d !important;
407
+
408
+ border-radius: 20px;
409
+
410
+ padding: 20px;
411
+
412
+ overflow: hidden;
413
+
414
+ }
415
+
416
+ button.svelte-1030q2h {
417
+
418
+ border-radius: 100%;
419
+
420
+ }
421
+
422
+ div.svelte-1030q2h svg {
423
+
424
+ }
425
+
426
+ svg path {
427
+
428
+ }
429
+
430
+ img.svelte-1b19cri {
431
+
432
+ border-radius: 10px;
433
+
434
+ }
435
+
436
+ .form.svelte-sfqy0y {
437
+
438
+ background: #fff0;
439
+
440
+ border-width: 0px;
441
+
442
+ opacity: 0.8;
443
+
444
+ }
445
+
446
+ .gradio-container-3-44-2,.gradio-container-3-44-2 *,.gradio-container-3-44-2 :before,.gradio-container-3-44-2 :after {
447
+
448
+ box-sizing: border-box;
449
+
450
+ border-width: 0;
451
+
452
+ border-style: solid;
453
+
454
+ }
455
+
456
+ div#component-13 {
457
+
458
+ display: none;
459
+
460
+ }
461
+
462
+ footer.svelte-mpyp5e {
463
+
464
+ display: none !important;
465
+
466
+ }
467
+
468
+ div#intro {
469
+
470
+ display: none;
471
+
472
+ }
473
+
474
+ div.svelte-15lo0d8 {
475
+
476
+ display: flex;
477
+
478
+ flex-wrap: wrap;
479
+
480
+ gap: 0;
481
+
482
+ width: var(--size-full);
483
+
484
+ flex-direction: initial;
485
+
486
+ justify-content: center;
487
+
488
+ align-items: baseline;
489
+
490
+ }
491
+
492
+ input.svelte-1f354aw.svelte-1f354aw, textarea.svelte-1f354aw.svelte-1f354aw {
493
+
494
+ display: block;
495
+
496
+ position: relative;
497
+
498
+ outline: none !important;
499
+
500
+ box-shadow: var(--input-shadow);
501
+
502
+ background: var(--input-background-fill);
503
+
504
+ padding: var(--input-padding);
505
+
506
+ width: 100%;
507
+
508
+ color: var(--body-text-color);
509
+
510
+ font-weight: var(--input-text-weight);
511
+
512
+ font-size: large;
513
+
514
+ line-height: initial;
515
+
516
+ border: none;
517
+
518
+ text-size-adjust: auto;
519
+
520
+ font-size: 23px !important;
521
+
522
+ }
523
+
524
+ div#component-24 {
525
+
526
+ display: none;
527
+
528
+ }
529
+
530
+ div#component-8 {background: #00000024;border: 0;color: #ffffff;backdrop-filter: blur(20px);-webkit-backdrop-filter: blur(20px);border-width: 0 !important;}
531
+
532
+ span.md.svelte-9tftx4 {
533
+
534
+ display: none;
535
+
536
+ }
537
+
538
+ .empty.svelte-lk9eg8.large.unpadded_box {
539
+
540
+ background: none !important;
541
+
542
+ }
543
+
544
+ div#component-26 {
545
+
546
+ display: none;
547
+
548
+ }
549
+
550
+ div#component-7 {
551
+
552
+ background: none;
553
+
554
+ }
555
+
556
+ .wrap.default.full.svelte-119qaqt.hide {
557
+
558
+ background: none !important;
559
+
560
+ }
561
+
562
+ .styler.svelte-iyf88w {
563
+
564
+ background: none !important;
565
+
566
+ }
567
+
568
+ div#component-3 {
569
+
570
+ background: none !important;
571
+
572
+ border: 0;
573
+
574
+ }
575
+
576
+ input.scroll-hide.svelte-1f354aw {
577
+
578
+ overflow: hidden !important;
579
+
580
+ }
581
+
582
+ div#component-5 {
583
+
584
+ border-radius: 40px;
585
+
586
+ background: white !important;
587
+
588
+ opacity: 0.9;
589
+
590
+ }
591
+
592
+ #component-6 {
593
+
594
+ border-radius: 0px 40px 40px 0px;
595
+
596
+ background: linear-gradient(358deg, #ff4d0080, #fff0);
597
+
598
+ color: #ffffffe3;
599
+
600
+ border: 2px #ffffffc2 dashed;
601
+
602
+ border-left: 0;
603
+
604
+ font-size: 30px;
605
+
606
+ letter-spacing:-1px;
607
+
608
+ position: relative;
609
+
610
+ z-index: 1;
611
+
612
+ backdrop-filter: blur(18px);
613
+
614
+ -webkit-backdrop-filter: blur(18px);
615
+
616
+ display: none;
617
+
618
+ }
619
+
620
+ div#component-0 {
621
+
622
+ max-width: 100% !important;
623
+
624
+ }
625
+
626
+ .grid-wrap.svelte-1b19cri.fixed-height {
627
+
628
+ max-height: 100% !important;
629
+
630
+ overflow: auto;
631
+
632
+ }
633
+
634
+ footer.svelte-1ax1toq {
635
+
636
+ display: none !important;
637
+
638
+ }
639
+
640
+ input.scroll-hide.svelte-1f354aw {
641
+
642
+ font-size: 26px;
643
+
644
+ padding: 25px;
645
+
646
+ }
647
+
648
+ div#component-4 {
649
+
650
+ margin-top: 230px;
651
+
652
+ margin-bottom: 30px;
653
+
654
+ }
655
+
656
+ gradio-app {
657
+
658
+ background-color: transparent !important;
659
+
660
+ background: url(https://vivawaves.com/wavesweaveslogo.svg) top center no-repeat !important;
661
+
662
+ margin-top: 77px;
663
+
664
+ }
665
+
666
+ label.svelte-1f354aw {
667
+
668
+ }
669
+
670
+ .styler.svelte-iyf88w {
671
+
672
+ }
673
+
674
+ body {
675
+
676
+ background: url(https://vivawaves.com/vivatodaybg2.jpg);
677
+
678
+ background-size: cover;
679
+
680
+ }
681
+
682
+ img.svelte-1b19cri {}
683
+
684
+ .preview.svelte-1b19cri {
685
+
686
+ background: #0000004d !important;
687
+
688
+ border-radius: 20px;
689
+
690
+ padding: 20px;
691
+
692
+ overflow: hidden;
693
+
694
+ }
695
+
696
+ button.svelte-1030q2h {
697
+
698
+ border-radius: 100%;
699
+
700
+ }
701
+
702
+ div.svelte-1030q2h svg {
703
+
704
+ }
705
+
706
+ svg path {
707
+
708
+ }
709
+
710
+ img.svelte-1b19cri {
711
+
712
+ border-radius: 10px;
713
+
714
+ }
715
+
716
+ .form.svelte-sfqy0y {
717
+
718
+ background: #fff0;
719
+
720
+ border-width: 0px;
721
+
722
+ opacity: 0.8;
723
+
724
+ }
725
+
726
+ .gradio-container-3-44-2,.gradio-container-3-44-2 *,.gradio-container-3-44-2 :before,.gradio-container-3-44-2 :after {
727
+
728
+ box-sizing: border-box;
729
+
730
+ border-width: 0;
731
+
732
+ border-style: solid;
733
+
734
+ }
735
+
736
+ div#component-13 {
737
+
738
+ display: none;
739
+
740
+ }
741
+
742
+ footer.svelte-mpyp5e {
743
+
744
+ display: none !important;
745
+
746
+ }
747
+
748
+ div#intro {
749
+
750
+ display: none;
751
+
752
+ }
753
+
754
+ div.svelte-15lo0d8 {
755
+
756
+ display: flex;
757
+
758
+ flex-wrap: wrap;
759
+
760
+ gap: 0 !important;
761
+
762
+ width: var(--size-full);
763
+
764
+ flex-direction: initial;
765
+
766
+ justify-content: center;
767
+
768
+ align-items: baseline;
769
+
770
+ }
771
+
772
+ input.svelte-1f354aw.svelte-1f354aw, textarea.svelte-1f354aw.svelte-1f354aw {
773
+
774
+ display: block;
775
+
776
+ position: relative;
777
+
778
+ outline: none !important;
779
+
780
+ box-shadow: var(--input-shadow);
781
+
782
+ background: var(--input-background-fill);
783
+
784
+ padding: var(--input-padding);
785
+
786
+ width: 100%;
787
+
788
+ color: var(--body-text-color);
789
+
790
+ font-weight: var(--input-text-weight);
791
+
792
+ font-size: large;
793
+
794
+ line-height: initial;
795
+
796
+ border: none;
797
+
798
+ text-size-adjust: auto;
799
+
800
+ font-size: 23px !important;
801
+
802
+ border-radius: 30px;
803
+
804
+ background: white !important;
805
+
806
+ text-align: center;
807
+
808
+ }
809
+
810
+ div#component-8 {
811
+
812
+ margin-bottom: 70px;
813
+
814
+ }
815
  """
816
 
817
  with gr.Blocks(css=css) as demo: