openfree commited on
Commit
5b07987
1 Parent(s): 1809a79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +50 -25
app.py CHANGED
@@ -673,40 +673,65 @@ def load_private_model(model_id, huggingface_token):
673
  raise e
674
 
675
  custom_theme = gr.themes.Base(
676
- primary_hue="blue",
677
- secondary_hue="purple",
678
  neutral_hue="slate",
679
  ).set(
680
- button_primary_background_fill="*primary_500",
681
- button_primary_background_fill_dark="*primary_600",
682
- button_primary_background_fill_hover="*primary_400",
683
- button_primary_border_color="*primary_500",
684
- button_primary_border_color_dark="*primary_600",
 
 
 
 
 
 
685
  button_primary_text_color="white",
686
  button_primary_text_color_dark="white",
687
- button_secondary_background_fill="*neutral_100",
688
- button_secondary_background_fill_dark="*neutral_700",
689
- button_secondary_background_fill_hover="*neutral_50",
690
- button_secondary_text_color="*neutral_800",
 
691
  button_secondary_text_color_dark="white",
692
- background_fill_primary="*neutral_50",
693
- background_fill_primary_dark="*neutral_900",
694
- block_background_fill="white",
695
- block_background_fill_dark="*neutral_800",
696
- block_label_background_fill="*primary_500",
697
- block_label_background_fill_dark="*primary_600",
698
  block_label_text_color="white",
699
  block_label_text_color_dark="white",
700
- block_title_text_color="*neutral_800",
701
  block_title_text_color_dark="white",
702
- input_background_fill="white",
703
- input_background_fill_dark="*neutral_800",
704
- input_border_color="*neutral_200",
705
- input_border_color_dark="*neutral_700",
706
- input_placeholder_color="*neutral_400",
707
- input_placeholder_color_dark="*neutral_400",
 
 
 
 
 
 
 
 
 
 
708
  shadow_spread="8px",
709
- shadow_inset="0px 2px 4px 0px rgba(0,0,0,0.05)"
 
 
 
 
 
 
 
 
710
  )
711
 
712
  css = '''
 
673
  raise e
674
 
675
  custom_theme = gr.themes.Base(
676
+ primary_hue="indigo",
677
+ secondary_hue="slate",
678
  neutral_hue="slate",
679
  ).set(
680
+ # 다크 테마 기본 색상
681
+ background_fill_primary="#1a1a1a",
682
+ background_fill_secondary="#2d2d2d",
683
+ border_color_primary="#404040",
684
+
685
+ # 버튼 스타일
686
+ button_primary_background_fill="#4F46E5",
687
+ button_primary_background_fill_dark="#4338CA",
688
+ button_primary_background_fill_hover="#6366F1",
689
+ button_primary_border_color="#4F46E5",
690
+ button_primary_border_color_dark="#4338CA",
691
  button_primary_text_color="white",
692
  button_primary_text_color_dark="white",
693
+
694
+ button_secondary_background_fill="#374151",
695
+ button_secondary_background_fill_dark="#1F2937",
696
+ button_secondary_background_fill_hover="#4B5563",
697
+ button_secondary_text_color="white",
698
  button_secondary_text_color_dark="white",
699
+
700
+ # 블록 스타일
701
+ block_background_fill="#2d2d2d",
702
+ block_background_fill_dark="#1F2937",
703
+ block_label_background_fill="#4F46E5",
704
+ block_label_background_fill_dark="#4338CA",
705
  block_label_text_color="white",
706
  block_label_text_color_dark="white",
707
+ block_title_text_color="white",
708
  block_title_text_color_dark="white",
709
+
710
+ # 입력 필드 스타일
711
+ input_background_fill="#374151",
712
+ input_background_fill_dark="#1F2937",
713
+ input_border_color="#4B5563",
714
+ input_border_color_dark="#374151",
715
+ input_placeholder_color="#9CA3AF",
716
+ input_placeholder_color_dark="#6B7280",
717
+
718
+ # 텍스트 색상
719
+ text_color="white",
720
+ text_color_dark="white",
721
+ body_text_color="white",
722
+ body_text_color_dark="white",
723
+
724
+ # 그림자 효과
725
  shadow_spread="8px",
726
+ shadow_inset="0px 2px 4px 0px rgba(0,0,0,0.1)",
727
+
728
+ # 컨테이너 스타일
729
+ panel_background_fill="#2d2d2d",
730
+ panel_background_fill_dark="#1F2937",
731
+
732
+ # 보더 스타일
733
+ border_color_accent="#4F46E5",
734
+ border_color_accent_dark="#4338CA",
735
  )
736
 
737
  css = '''