Spaces:
Paused
Paused
improve ui/ux
Browse files
app.py
CHANGED
|
@@ -215,24 +215,102 @@ def synthesize_speech_gradio(
|
|
| 215 |
def create_gradio_interface():
|
| 216 |
"""Create the Gradio web interface."""
|
| 217 |
|
| 218 |
-
#
|
| 219 |
css = """
|
| 220 |
.gradio-container {
|
| 221 |
-
max-width:
|
| 222 |
margin: auto;
|
|
|
|
| 223 |
}
|
| 224 |
.title {
|
| 225 |
text-align: center;
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
|
|
|
|
|
|
|
|
|
| 230 |
}
|
| 231 |
.subtitle {
|
| 232 |
text-align: center;
|
| 233 |
color: #64748b;
|
| 234 |
-
font-size: 1.
|
| 235 |
-
margin-bottom:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
}
|
| 237 |
"""
|
| 238 |
|
|
|
|
| 215 |
def create_gradio_interface():
|
| 216 |
"""Create the Gradio web interface."""
|
| 217 |
|
| 218 |
+
# Enhanced CSS for modern UI/UX
|
| 219 |
css = """
|
| 220 |
.gradio-container {
|
| 221 |
+
max-width: 1400px;
|
| 222 |
margin: auto;
|
| 223 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 224 |
}
|
| 225 |
.title {
|
| 226 |
text-align: center;
|
| 227 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 228 |
+
-webkit-background-clip: text;
|
| 229 |
+
-webkit-text-fill-color: transparent;
|
| 230 |
+
font-size: 3.5em;
|
| 231 |
+
font-weight: 800;
|
| 232 |
+
margin-bottom: 0.5em;
|
| 233 |
+
letter-spacing: -0.02em;
|
| 234 |
}
|
| 235 |
.subtitle {
|
| 236 |
text-align: center;
|
| 237 |
color: #64748b;
|
| 238 |
+
font-size: 1.3em;
|
| 239 |
+
margin-bottom: 2.5em;
|
| 240 |
+
font-weight: 300;
|
| 241 |
+
}
|
| 242 |
+
.step-card {
|
| 243 |
+
background: linear-gradient(145deg, #f8fafc, #e2e8f0);
|
| 244 |
+
border: 1px solid #cbd5e1;
|
| 245 |
+
border-radius: 16px;
|
| 246 |
+
padding: 1.5em;
|
| 247 |
+
margin: 1em 0;
|
| 248 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
| 249 |
+
transition: all 0.3s ease;
|
| 250 |
+
}
|
| 251 |
+
.step-card:hover {
|
| 252 |
+
transform: translateY(-2px);
|
| 253 |
+
box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
|
| 254 |
+
}
|
| 255 |
+
.step-number {
|
| 256 |
+
background: linear-gradient(135deg, #667eea, #764ba2);
|
| 257 |
+
color: white;
|
| 258 |
+
width: 32px;
|
| 259 |
+
height: 32px;
|
| 260 |
+
border-radius: 50%;
|
| 261 |
+
display: inline-flex;
|
| 262 |
+
align-items: center;
|
| 263 |
+
justify-content: center;
|
| 264 |
+
font-weight: bold;
|
| 265 |
+
font-size: 0.9em;
|
| 266 |
+
margin-right: 12px;
|
| 267 |
+
}
|
| 268 |
+
.feature-grid {
|
| 269 |
+
display: grid;
|
| 270 |
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 271 |
+
gap: 1.5em;
|
| 272 |
+
margin: 2em 0;
|
| 273 |
+
}
|
| 274 |
+
.feature-card {
|
| 275 |
+
background: white;
|
| 276 |
+
border: 1px solid #e2e8f0;
|
| 277 |
+
border-radius: 12px;
|
| 278 |
+
padding: 1.5em;
|
| 279 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
| 280 |
+
transition: all 0.3s ease;
|
| 281 |
+
}
|
| 282 |
+
.feature-card:hover {
|
| 283 |
+
border-color: #667eea;
|
| 284 |
+
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
|
| 285 |
+
}
|
| 286 |
+
.btn-primary {
|
| 287 |
+
background: linear-gradient(135deg, #667eea, #764ba2) !important;
|
| 288 |
+
border: none !important;
|
| 289 |
+
color: white !important;
|
| 290 |
+
font-weight: 600 !important;
|
| 291 |
+
transition: all 0.3s ease !important;
|
| 292 |
+
}
|
| 293 |
+
.btn-primary:hover {
|
| 294 |
+
transform: translateY(-1px) !important;
|
| 295 |
+
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
|
| 296 |
+
}
|
| 297 |
+
.output-section {
|
| 298 |
+
background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
|
| 299 |
+
border-radius: 16px;
|
| 300 |
+
padding: 2em;
|
| 301 |
+
margin-top: 1em;
|
| 302 |
+
}
|
| 303 |
+
.example-card {
|
| 304 |
+
background: white;
|
| 305 |
+
border: 1px solid #e2e8f0;
|
| 306 |
+
border-radius: 8px;
|
| 307 |
+
padding: 1em;
|
| 308 |
+
margin: 0.5em 0;
|
| 309 |
+
transition: all 0.2s ease;
|
| 310 |
+
}
|
| 311 |
+
.example-card:hover {
|
| 312 |
+
border-color: #667eea;
|
| 313 |
+
background: #fafbfc;
|
| 314 |
}
|
| 315 |
"""
|
| 316 |
|