hivecorp commited on
Commit
e30549b
·
verified ·
1 Parent(s): 1c3d9c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +52 -9
app.py CHANGED
@@ -525,10 +525,45 @@ import atexit
525
  atexit.register(file_manager.cleanup_all)
526
 
527
  # Create custom theme
528
- theme = Monochrome().set(
529
- primary_hue="blue",
530
- secondary_hue="slate",
531
- neutral_hue="zinc",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
532
  )
533
 
534
  # Create Gradio interface with modern UI
@@ -536,11 +571,19 @@ with gr.Blocks(
536
  title="Text to Speech Studio",
537
  theme=theme,
538
  css="""
539
- .container { max-width: 1200px; margin: auto; }
540
- .title { text-align: center; margin-bottom: 2rem; }
541
- .input-group { margin-bottom: 1.5rem; }
542
- .help-text { font-size: 0.9em; color: #666; }
543
- .status-area { margin: 1rem 0; }
 
 
 
 
 
 
 
 
544
  """
545
  ) as app:
546
  with gr.Group(elem_classes="container"):
 
525
  atexit.register(file_manager.cleanup_all)
526
 
527
  # Create custom theme
528
+ theme = gr.themes.Monochrome(
529
+ primary_hue=gr.themes.Color(
530
+ c50="#EBEFFF",
531
+ c100="#D3DEFF",
532
+ c200="#A6B9FF",
533
+ c300="#7B97FF",
534
+ c400="#4C73FF",
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
 
571
  title="Text to Speech Studio",
572
  theme=theme,
573
  css="""
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; color: var(--neutral-600); }
578
+ .input-group { margin-bottom: 1.5rem; border-radius: 8px; }
579
+ .help-text { font-size: 0.9rem; color: var(--neutral-600); padding: 0.5rem 0; }
580
+ .status-area { margin: 1.5rem 0; padding: 1rem; border-radius: 8px; }
581
+ .error-message { color: var(--error-500); }
582
+ .preview-audio { margin: 1rem 0; }
583
+ .download-file { padding: 1rem; }
584
+ /* Modern Button Styles */
585
+ button.primary { background: var(--primary-500); }
586
+ button.secondary { background: var(--neutral-100); color: var(--neutral-800); }
587
  """
588
  ) as app:
589
  with gr.Group(elem_classes="container"):