Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -526,44 +526,12 @@ atexit.register(file_manager.cleanup_all)
|
|
526 |
|
527 |
# Create custom theme
|
528 |
theme = gr.themes.Monochrome(
|
529 |
-
primary_hue=
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
c500="#0047FF",
|
536 |
-
c600="#0037DB",
|
537 |
-
c700="#0029B7",
|
538 |
-
c800="#001D93",
|
539 |
-
c900="#00126F",
|
540 |
-
),
|
541 |
-
secondary_hue=gr.themes.Color(
|
542 |
-
c50="#F4F7FF",
|
543 |
-
c100="#E9EEFF",
|
544 |
-
c200="#D3DEFF",
|
545 |
-
c300="#BED0FF",
|
546 |
-
c400="#A8C1FF",
|
547 |
-
c500="#93B3FF",
|
548 |
-
c600="#7595DB",
|
549 |
-
c700="#5978B7",
|
550 |
-
c800="#3E5A93",
|
551 |
-
c900="#223C6F",
|
552 |
-
),
|
553 |
-
neutral_hue=gr.themes.Color(
|
554 |
-
c50="#F7F7F8",
|
555 |
-
c100="#EFEFEF",
|
556 |
-
c200="#DCDCDC",
|
557 |
-
c300="#BDBDBD",
|
558 |
-
c400="#989898",
|
559 |
-
c500="#7C7C7C",
|
560 |
-
c600="#656565",
|
561 |
-
c700="#525252",
|
562 |
-
c800="#464646",
|
563 |
-
c900="#3D3D3D",
|
564 |
-
),
|
565 |
-
font=("Inter", "sans-serif"),
|
566 |
-
font_mono=("IBM Plex Mono", "monospace"),
|
567 |
)
|
568 |
|
569 |
# Create Gradio interface with modern UI
|
@@ -574,16 +542,16 @@ with gr.Blocks(
|
|
574 |
.container { max-width: 1200px; margin: auto; padding: 2rem; }
|
575 |
.title { text-align: center; margin-bottom: 2.5rem; }
|
576 |
.title h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
|
577 |
-
.title h3 { font-size: 1.2rem; font-weight: 400;
|
578 |
.input-group { margin-bottom: 1.5rem; border-radius: 8px; }
|
579 |
-
.help-text { font-size: 0.9rem;
|
580 |
.status-area { margin: 1.5rem 0; padding: 1rem; border-radius: 8px; }
|
581 |
-
.error-message { color:
|
582 |
.preview-audio { margin: 1rem 0; }
|
583 |
.download-file { padding: 1rem; }
|
584 |
-
|
585 |
-
button.primary {
|
586 |
-
button.secondary {
|
587 |
"""
|
588 |
) as app:
|
589 |
with gr.Group(elem_classes="container"):
|
|
|
526 |
|
527 |
# Create custom theme
|
528 |
theme = gr.themes.Monochrome(
|
529 |
+
primary_hue="blue",
|
530 |
+
secondary_hue="slate",
|
531 |
+
neutral_hue="zinc",
|
532 |
+
radius_size=gr.themes.sizes.radius_sm,
|
533 |
+
font=("Inter", "system-ui", "sans-serif"),
|
534 |
+
font_mono=("IBM Plex Mono", "monospace")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
)
|
536 |
|
537 |
# Create Gradio interface with modern UI
|
|
|
542 |
.container { max-width: 1200px; margin: auto; padding: 2rem; }
|
543 |
.title { text-align: center; margin-bottom: 2.5rem; }
|
544 |
.title h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
|
545 |
+
.title h3 { font-size: 1.2rem; font-weight: 400; opacity: 0.8; }
|
546 |
.input-group { margin-bottom: 1.5rem; border-radius: 8px; }
|
547 |
+
.help-text { font-size: 0.9rem; opacity: 0.8; padding: 0.5rem 0; }
|
548 |
.status-area { margin: 1.5rem 0; padding: 1rem; border-radius: 8px; }
|
549 |
+
.error-message { color: #dc2626; }
|
550 |
.preview-audio { margin: 1rem 0; }
|
551 |
.download-file { padding: 1rem; }
|
552 |
+
button.primary { transform: scale(1); transition: transform 0.2s; }
|
553 |
+
button.primary:hover { transform: scale(1.02); }
|
554 |
+
button.secondary:hover { opacity: 0.9; }
|
555 |
"""
|
556 |
) as app:
|
557 |
with gr.Group(elem_classes="container"):
|