openfree commited on
Commit
fcb9dfb
·
verified ·
1 Parent(s): 1ddc7cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +54 -16
app.py CHANGED
@@ -687,17 +687,17 @@ css = """
687
  }
688
  /* 2) 배경을 완전히 투명하게 변경 */
689
  body {
690
- background: transparent; /* 단색 대신 투명 배경 사용 */
691
  margin: 0;
692
  padding: 0;
693
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
694
  color: #333;
695
  }
696
- /* 버튼도 투명하게 변경 */
697
  button, .btn {
698
- background: rgba(255, 182, 193, 0.5) !important; /* 배경 투명도 증가 */
699
- border: none;
700
- color: #333; /* 글자 잘 보이도록 약간 진한 글씨 */
701
  padding: 12px 24px;
702
  text-transform: uppercase;
703
  font-weight: bold;
@@ -705,29 +705,67 @@ button, .btn {
705
  cursor: pointer;
706
  }
707
  button:hover, .btn:hover {
708
- background: rgba(255, 105, 180, 0.5) !important; /* 호버 상태에서도 투명도 유지 */
709
  }
710
- #examples_container {
 
 
711
  margin: auto;
712
  width: 90%;
713
- background: rgba(255, 255, 255, 0.5); /* 예제 컨테이너 배경 투명하게 */
714
  }
715
- #examples_row {
716
  justify-content: center;
717
- background: transparent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718
  }
 
719
  /* 채팅 인터페이스 요소들도 투명하게 */
720
  .chatbox, .chatbot, .message {
721
- background: rgba(255, 255, 255, 0.5) !important;
722
  }
 
723
  /* 입력창 투명도 조정 */
724
- .multimodal-textbox {
725
- background: rgba(255, 255, 255, 0.7) !important;
726
- }
727
- /* 모든 컨테이너 요소에 투명도 적용 */
728
- .container, .wrap, .box, .panel {
729
  background: rgba(255, 255, 255, 0.5) !important;
730
  }
 
 
 
 
 
 
 
 
 
 
731
  """
732
 
733
  title_html = """
 
687
  }
688
  /* 2) 배경을 완전히 투명하게 변경 */
689
  body {
690
+ background: transparent; /* 완전 투명 배경 */
691
  margin: 0;
692
  padding: 0;
693
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
694
  color: #333;
695
  }
696
+ /* 버튼 색상 완전히 제거하고 투명하게 */
697
  button, .btn {
698
+ background: transparent !important; /* 색상 완전히 제거 */
699
+ border: 1px solid #ddd; /* 경계선만 살짝 추가 */
700
+ color: #333;
701
  padding: 12px 24px;
702
  text-transform: uppercase;
703
  font-weight: bold;
 
705
  cursor: pointer;
706
  }
707
  button:hover, .btn:hover {
708
+ background: rgba(0, 0, 0, 0.05) !important; /* 호버 아주 살짝 어둡게만 */
709
  }
710
+
711
+ /* examples 관련 모든 색상 제거 */
712
+ #examples_container, .examples-container {
713
  margin: auto;
714
  width: 90%;
715
+ background: transparent !important;
716
  }
717
+ #examples_row, .examples-row {
718
  justify-content: center;
719
+ background: transparent !important;
720
+ }
721
+
722
+ /* examples 버튼 내부의 모든 색상 제거 */
723
+ .gr-samples-table button,
724
+ .gr-samples-table .gr-button,
725
+ .gr-samples-table .gr-sample-btn,
726
+ .gr-examples button,
727
+ .gr-examples .gr-button,
728
+ .gr-examples .gr-sample-btn,
729
+ .examples button,
730
+ .examples .gr-button,
731
+ .examples .gr-sample-btn {
732
+ background: transparent !important;
733
+ border: 1px solid #ddd;
734
+ color: #333;
735
+ }
736
+
737
+ /* examples 버튼 호버 시에도 색상 없게 */
738
+ .gr-samples-table button:hover,
739
+ .gr-samples-table .gr-button:hover,
740
+ .gr-samples-table .gr-sample-btn:hover,
741
+ .gr-examples button:hover,
742
+ .gr-examples .gr-button:hover,
743
+ .gr-examples .gr-sample-btn:hover,
744
+ .examples button:hover,
745
+ .examples .gr-button:hover,
746
+ .examples .gr-sample-btn:hover {
747
+ background: rgba(0, 0, 0, 0.05) !important;
748
  }
749
+
750
  /* 채팅 인터페이스 요소들도 투명하게 */
751
  .chatbox, .chatbot, .message {
752
+ background: transparent !important;
753
  }
754
+
755
  /* 입력창 투명도 조정 */
756
+ .multimodal-textbox, textarea, input {
 
 
 
 
757
  background: rgba(255, 255, 255, 0.5) !important;
758
  }
759
+
760
+ /* 모든 컨테이너 요소에 배경색 제거 */
761
+ .container, .wrap, .box, .panel, .gr-panel {
762
+ background: transparent !important;
763
+ }
764
+
765
+ /* 예제 섹션의 모든 요소에서 배경색 제거 */
766
+ .gr-examples-container, .gr-examples, .gr-sample, .gr-sample-row, .gr-sample-cell {
767
+ background: transparent !important;
768
+ }
769
  """
770
 
771
  title_html = """