Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -75,39 +75,76 @@ This platform offers two powerful features:
|
|
75 |
*Note: Both English and Korean prompts are supported (영어와 한글 프롬프트 모두 지원됩니다)*
|
76 |
'''
|
77 |
|
|
|
78 |
custom_css = """
|
79 |
.gradio-container {
|
80 |
-
background-color: #
|
81 |
-
color: #
|
82 |
}
|
83 |
.tabs {
|
84 |
-
background-color: #
|
85 |
border-radius: 10px;
|
86 |
padding: 10px;
|
87 |
margin: 10px 0;
|
|
|
88 |
}
|
89 |
.input-box {
|
90 |
-
background-color: #
|
91 |
-
border: 1px solid #
|
92 |
border-radius: 8px;
|
93 |
padding: 15px;
|
94 |
margin: 10px 0;
|
|
|
95 |
}
|
96 |
.button-primary {
|
97 |
-
background-color: #
|
98 |
border: none !important;
|
99 |
color: white !important;
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
.button-secondary {
|
102 |
-
background-color: #
|
103 |
-
border:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
"""
|
106 |
|
|
|
107 |
def launch():
|
108 |
model_zoo.init_models()
|
109 |
|
110 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
with gr.Row():
|
112 |
gr.Markdown('# ' + _TITLE, elem_classes="main-title")
|
113 |
gr.Markdown(_DESCRIPTION)
|
|
|
75 |
*Note: Both English and Korean prompts are supported (영어와 한글 프롬프트 모두 지원됩니다)*
|
76 |
'''
|
77 |
|
78 |
+
# CSS 스타일 밝은 테마로 수정
|
79 |
custom_css = """
|
80 |
.gradio-container {
|
81 |
+
background-color: #ffffff;
|
82 |
+
color: #333333;
|
83 |
}
|
84 |
.tabs {
|
85 |
+
background-color: #f8f9fa;
|
86 |
border-radius: 10px;
|
87 |
padding: 10px;
|
88 |
margin: 10px 0;
|
89 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
90 |
}
|
91 |
.input-box {
|
92 |
+
background-color: #ffffff;
|
93 |
+
border: 1px solid #e0e0e0;
|
94 |
border-radius: 8px;
|
95 |
padding: 15px;
|
96 |
margin: 10px 0;
|
97 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
|
98 |
}
|
99 |
.button-primary {
|
100 |
+
background-color: #4a90e2 !important;
|
101 |
border: none !important;
|
102 |
color: white !important;
|
103 |
+
transition: all 0.3s ease;
|
104 |
+
}
|
105 |
+
.button-primary:hover {
|
106 |
+
background-color: #357abd !important;
|
107 |
+
transform: translateY(-1px);
|
108 |
}
|
109 |
.button-secondary {
|
110 |
+
background-color: #f0f0f0 !important;
|
111 |
+
border: 1px solid #e0e0e0 !important;
|
112 |
+
color: #333333 !important;
|
113 |
+
transition: all 0.3s ease;
|
114 |
+
}
|
115 |
+
.button-secondary:hover {
|
116 |
+
background-color: #e0e0e0 !important;
|
117 |
+
}
|
118 |
+
.main-title {
|
119 |
+
color: #2c3e50;
|
120 |
+
font-weight: bold;
|
121 |
+
margin-bottom: 20px;
|
122 |
+
}
|
123 |
+
.slider-label {
|
124 |
+
color: #2c3e50;
|
125 |
+
font-weight: 500;
|
126 |
+
}
|
127 |
+
.textbox-input {
|
128 |
+
border: 1px solid #e0e0e0 !important;
|
129 |
+
background-color: #ffffff !important;
|
130 |
}
|
131 |
"""
|
132 |
|
133 |
+
# Gradio 테마 설정 수정
|
134 |
def launch():
|
135 |
model_zoo.init_models()
|
136 |
|
137 |
+
with gr.Blocks(
|
138 |
+
title=_TITLE,
|
139 |
+
css=custom_css,
|
140 |
+
theme=gr.themes.Soft(
|
141 |
+
primary_hue="blue",
|
142 |
+
secondary_hue="slate",
|
143 |
+
neutral_hue="slate",
|
144 |
+
font=["Inter", "Arial", "sans-serif"]
|
145 |
+
)
|
146 |
+
) as demo:
|
147 |
+
|
148 |
with gr.Row():
|
149 |
gr.Markdown('# ' + _TITLE, elem_classes="main-title")
|
150 |
gr.Markdown(_DESCRIPTION)
|