Update app.py
Browse files
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="
|
677 |
-
secondary_hue="
|
678 |
neutral_hue="slate",
|
679 |
).set(
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
button_primary_text_color="white",
|
686 |
button_primary_text_color_dark="white",
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
|
|
691 |
button_secondary_text_color_dark="white",
|
692 |
-
|
693 |
-
|
694 |
-
block_background_fill="
|
695 |
-
block_background_fill_dark="
|
696 |
-
block_label_background_fill="
|
697 |
-
block_label_background_fill_dark="
|
698 |
block_label_text_color="white",
|
699 |
block_label_text_color_dark="white",
|
700 |
-
block_title_text_color="
|
701 |
block_title_text_color_dark="white",
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
708 |
shadow_spread="8px",
|
709 |
-
shadow_inset="0px 2px 4px 0px rgba(0,0,0,0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 = '''
|