Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,18 +178,19 @@ custom_css = """
|
|
| 178 |
max-width: 1200px;
|
| 179 |
margin: 0 auto;
|
| 180 |
padding: 20px;
|
| 181 |
-
background: #
|
| 182 |
border-radius: 15px;
|
| 183 |
-
box-shadow: 0 4px 6px rgba(0,0,0,0.
|
| 184 |
}
|
| 185 |
|
| 186 |
.header {
|
| 187 |
text-align: center;
|
| 188 |
padding: 2em;
|
| 189 |
-
background: linear-gradient(135deg, #
|
| 190 |
color: white;
|
| 191 |
border-radius: 15px;
|
| 192 |
margin-bottom: 2em;
|
|
|
|
| 193 |
}
|
| 194 |
|
| 195 |
.tab-nav {
|
|
@@ -202,33 +203,58 @@ custom_css = """
|
|
| 202 |
border-radius: 8px !important;
|
| 203 |
margin: 0 5px !important;
|
| 204 |
transition: all 0.3s ease !important;
|
|
|
|
|
|
|
|
|
|
| 205 |
}
|
| 206 |
|
| 207 |
.tab-button:hover {
|
| 208 |
transform: translateY(-2px);
|
| 209 |
-
box-shadow: 0 3px 6px rgba(
|
|
|
|
| 210 |
}
|
| 211 |
|
| 212 |
.dark-btn {
|
| 213 |
-
background: linear-gradient(135deg, #
|
| 214 |
color: white !important;
|
| 215 |
border: none !important;
|
| 216 |
padding: 12px 24px !important;
|
| 217 |
border-radius: 8px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
}
|
| 219 |
|
| 220 |
.output-card {
|
| 221 |
-
background:
|
| 222 |
border-radius: 10px !important;
|
| 223 |
padding: 20px !important;
|
| 224 |
-
box-shadow: 0 2px 4px rgba(
|
|
|
|
| 225 |
}
|
| 226 |
|
| 227 |
.progress-indicator {
|
| 228 |
-
color: #
|
| 229 |
font-style: italic;
|
| 230 |
margin-top: 10px;
|
| 231 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
"""
|
| 233 |
|
| 234 |
with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as demo:
|
|
|
|
| 178 |
max-width: 1200px;
|
| 179 |
margin: 0 auto;
|
| 180 |
padding: 20px;
|
| 181 |
+
background: #f0f9fb;
|
| 182 |
border-radius: 15px;
|
| 183 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
| 184 |
}
|
| 185 |
|
| 186 |
.header {
|
| 187 |
text-align: center;
|
| 188 |
padding: 2em;
|
| 189 |
+
background: linear-gradient(135deg, #2a9d8f 0%, #457b9d 100%);
|
| 190 |
color: white;
|
| 191 |
border-radius: 15px;
|
| 192 |
margin-bottom: 2em;
|
| 193 |
+
border: 1px solid #264653;
|
| 194 |
}
|
| 195 |
|
| 196 |
.tab-nav {
|
|
|
|
| 203 |
border-radius: 8px !important;
|
| 204 |
margin: 0 5px !important;
|
| 205 |
transition: all 0.3s ease !important;
|
| 206 |
+
background: #e9f5f4 !important;
|
| 207 |
+
border: 1px solid #a8dadc !important;
|
| 208 |
+
color: #1d3557 !important;
|
| 209 |
}
|
| 210 |
|
| 211 |
.tab-button:hover {
|
| 212 |
transform: translateY(-2px);
|
| 213 |
+
box-shadow: 0 3px 6px rgba(42,157,143,0.2);
|
| 214 |
+
background: #caf0f8 !important;
|
| 215 |
}
|
| 216 |
|
| 217 |
.dark-btn {
|
| 218 |
+
background: linear-gradient(135deg, #457b9d 0%, #2a9d8f 100%) !important;
|
| 219 |
color: white !important;
|
| 220 |
border: none !important;
|
| 221 |
padding: 12px 24px !important;
|
| 222 |
border-radius: 8px !important;
|
| 223 |
+
transition: transform 0.2s ease !important;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
.dark-btn:hover {
|
| 227 |
+
transform: scale(1.02);
|
| 228 |
+
box-shadow: 0 3px 8px rgba(42,157,143,0.3);
|
| 229 |
}
|
| 230 |
|
| 231 |
.output-card {
|
| 232 |
+
background: #f8fbfe !important;
|
| 233 |
border-radius: 10px !important;
|
| 234 |
padding: 20px !important;
|
| 235 |
+
box-shadow: 0 2px 4px rgba(69,123,157,0.1) !important;
|
| 236 |
+
border: 1px solid #e2e8f0;
|
| 237 |
}
|
| 238 |
|
| 239 |
.progress-indicator {
|
| 240 |
+
color: #457b9d;
|
| 241 |
font-style: italic;
|
| 242 |
margin-top: 10px;
|
| 243 |
}
|
| 244 |
+
|
| 245 |
+
/* Additional Color Elements */
|
| 246 |
+
h1, h2, h3 {
|
| 247 |
+
color: #1d3557 !important;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
audio {
|
| 251 |
+
border: 1px solid #a8dadc !important;
|
| 252 |
+
border-radius: 8px !important;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
.slider-handle {
|
| 256 |
+
background: #2a9d8f !important;
|
| 257 |
+
}
|
| 258 |
"""
|
| 259 |
|
| 260 |
with gr.Blocks(css=custom_css, theme=gr.themes.Default()) as demo:
|