Ryan-PR commited on
Commit
630075f
·
verified ·
1 Parent(s): 308b366

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -516,28 +516,28 @@ text = """
516
  pipe, image_predictor, video_predictor = get_pipe_image_and_video_predictor()
517
 
518
  css = """
519
- .my-btn {
520
  width: 60% !important;
521
  margin: 0 auto;
522
  }
523
- .my-video1 {
524
  width: 60% !important;
525
  height: 35% !important;
526
  margin: 0 auto;
527
  }
528
- .my-video {
529
  width: 60% !important;
530
  height: 35% !important;
531
  margin: 0 auto;
532
  }
533
- .my-md {
534
  margin: 0 auto;
535
  }
536
- .my-btn2 {
537
  width: 60% !important;
538
  margin: 0 auto;
539
  }
540
- .my-btn2 button {
541
  width: 120px !important;
542
  max-width: 120px !important;
543
  min-width: 120px !important;
@@ -549,30 +549,31 @@ css = """
549
  overflow: hidden !important;
550
  white-space: normal !important;
551
  }
552
- .my-btn3 {
553
  width: 60% !important;
554
  margin: 0 auto;
555
  }
556
- .ref_title {
557
  text-align: center;
558
  }
559
- .ref-image {
560
  width: 60% !important;
561
  height: 35% !important;
562
  margin: 0 auto;
563
  }
564
- .ref-mask {
565
  width: 60% !important;
566
  height: 35% !important;
567
  margin: 0 auto;
568
  }
569
- .mesh-row {
570
  width: 60% !important;
571
  margin: 0 auto;
572
  }
573
  """
574
 
575
- with gr.Blocks(css=css) as demo:
 
576
  video_state = gr.State(
577
  {
578
  "origin_images": None,
 
516
  pipe, image_predictor, video_predictor = get_pipe_image_and_video_predictor()
517
 
518
  css = """
519
+ #my-btn {
520
  width: 60% !important;
521
  margin: 0 auto;
522
  }
523
+ #my-video1 {
524
  width: 60% !important;
525
  height: 35% !important;
526
  margin: 0 auto;
527
  }
528
+ #my-video {
529
  width: 60% !important;
530
  height: 35% !important;
531
  margin: 0 auto;
532
  }
533
+ #my-md {
534
  margin: 0 auto;
535
  }
536
+ #my-btn2 {
537
  width: 60% !important;
538
  margin: 0 auto;
539
  }
540
+ #my-btn2 button {
541
  width: 120px !important;
542
  max-width: 120px !important;
543
  min-width: 120px !important;
 
549
  overflow: hidden !important;
550
  white-space: normal !important;
551
  }
552
+ #my-btn3 {
553
  width: 60% !important;
554
  margin: 0 auto;
555
  }
556
+ #ref_title {
557
  text-align: center;
558
  }
559
+ #ref-image {
560
  width: 60% !important;
561
  height: 35% !important;
562
  margin: 0 auto;
563
  }
564
+ #ref-mask {
565
  width: 60% !important;
566
  height: 35% !important;
567
  margin: 0 auto;
568
  }
569
+ #mesh-row {
570
  width: 60% !important;
571
  margin: 0 auto;
572
  }
573
  """
574
 
575
+ with gr.Blocks() as demo:
576
+ gr.HTML(f"<style>{css}</style>")
577
  video_state = gr.State(
578
  {
579
  "origin_images": None,