haepada commited on
Commit
773b1f1
·
verified ·
1 Parent(s): bc5ef7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -24
app.py CHANGED
@@ -590,12 +590,12 @@ def create_interface():
590
  css = """
591
  @media (max-width: 600px) {
592
  .container { padding: 10px !important; }
593
- .gradio-button { width: 100% !important; }
594
- #main-image { width: 100% !important; height: auto !important; } /* Full width on mobile */
595
  #logo-image {
596
- width: 75px; /* 50% of the desktop size for mobile */
597
  height: auto;
598
- }
599
  .gradio-button {
600
  width: 100% !important;
601
  margin: 5px 0 !important;
@@ -609,10 +609,9 @@ def create_interface():
609
  .gradio-dataframe {
610
  overflow-x: auto !important;
611
  max-width: 100% !important;
612
-
613
  }
614
  }
615
-
616
  /* 전반적인 UI 개선 */
617
  .gradio-button {
618
  transition: all 0.3s ease;
@@ -626,40 +625,27 @@ def create_interface():
626
  box-shadow: none !important;
627
  }
628
 
629
- #intro-section {
630
- text-align: center;
631
- padding: 0;
632
- margin: 0;
633
- }
634
  /* 로고 이미지 스타일 */
635
  #logo-container {
636
- background: transparent !important; /* Force transparent background */
637
- padding: 0;
638
- margin: 0 auto;
639
- text-align: center;
640
- }
641
-
642
- #logo-container {
643
- background: transparent !important; /* Force transparent background */
644
  padding: 0;
645
  margin: 0 auto;
646
  text-align: center;
647
  }
648
-
649
  #logo-image {
650
- width: 150px; /* Desktop size */
651
  height: auto;
652
  display: block;
653
  margin: 0 auto;
654
  }
655
-
 
656
  .main-image-container {
657
- background: none; /* Remove any background color */
658
  text-align: center;
659
  margin-top: 20px;
660
  margin-bottom: 80px;
661
  }
662
-
663
  #main-image {
664
  width: 600px;
665
  height: 600px;
 
590
  css = """
591
  @media (max-width: 600px) {
592
  .container { padding: 10px !important; }
593
+ .gradio-button { width: 100% !important; }
594
+ #main-image { width: 100% !important; height: auto !important; }
595
  #logo-image {
596
+ width: 75px !important; /* 50% of the desktop size for mobile */
597
  height: auto;
598
+ }
599
  .gradio-button {
600
  width: 100% !important;
601
  margin: 5px 0 !important;
 
609
  .gradio-dataframe {
610
  overflow-x: auto !important;
611
  max-width: 100% !important;
 
612
  }
613
  }
614
+
615
  /* 전반적인 UI 개선 */
616
  .gradio-button {
617
  transition: all 0.3s ease;
 
625
  box-shadow: none !important;
626
  }
627
 
 
 
 
 
 
628
  /* 로고 이미지 스타일 */
629
  #logo-container {
630
+ background: transparent !important;
 
 
 
 
 
 
 
631
  padding: 0;
632
  margin: 0 auto;
633
  text-align: center;
634
  }
 
635
  #logo-image {
636
+ width: 150px !important; /* Desktop size */
637
  height: auto;
638
  display: block;
639
  margin: 0 auto;
640
  }
641
+
642
+ /* 메인 이미지 스타일 */
643
  .main-image-container {
644
+ background: none;
645
  text-align: center;
646
  margin-top: 20px;
647
  margin-bottom: 80px;
648
  }
 
649
  #main-image {
650
  width: 600px;
651
  height: 600px;