Autorecap commited on
Commit
20d2c3c
Β·
verified Β·
1 Parent(s): 6fd3a00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +63 -47
app.py CHANGED
@@ -657,88 +657,104 @@ def process_magic_recap_video(
657
  finally:
658
  shutil.rmtree(work_dir, ignore_errors=True)
659
 
660
- # PURPLE ACCENT & DARK BLUE UI THEME
661
  CUSTOM_CSS = r"""
662
  :root {
663
- --bg-dark: #0b0f19;
664
- --card-bg: #111827;
665
- --border-color: #1f293d;
666
- --text-primary: #ffffff;
667
- --text-muted: #9ca3af;
668
  --accent-purple: #5850ec;
669
  --accent-purple-hover: #4338ca;
670
- --input-bg: #1f2937;
671
  }
672
 
673
  body, .gradio-container {
674
  background-color: var(--bg-dark) !important;
675
- color: var(--text-primary) !important;
676
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
677
  }
678
 
679
- .ui-card {
680
- background: var(--card-bg) !important;
 
 
 
 
 
 
 
681
  border: 1px solid var(--border-color) !important;
682
- border-radius: 16px !important;
683
- padding: 18px !important;
684
- margin-bottom: 16px !important;
685
- box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
686
  }
687
 
688
- input, textarea, select, .secondary {
689
- background-color: var(--input-bg) !important;
690
- color: #ffffff !important;
691
- border: 1px solid #374151 !important;
692
- border-radius: 10px !important;
 
 
 
 
 
 
 
 
 
 
 
693
  font-size: 14px !important;
 
694
  }
695
 
696
- label span, .block-title, div[data-testid="markdownbox"] p {
697
- color: #f3f4f6 !important;
 
 
 
 
 
 
 
 
 
 
 
698
  font-weight: 600 !important;
699
- font-size: 14px !important;
700
  }
701
 
 
 
 
 
 
 
 
 
 
 
 
 
702
  button.primary {
703
  background: var(--accent-purple) !important;
704
  color: #ffffff !important;
705
- font-weight: 600 !important;
706
- font-size: 15px !important;
707
- border-radius: 12px !important;
708
  border: none !important;
709
- padding: 10px 20px !important;
710
- transition: all 0.2s ease !important;
711
  }
712
 
713
  button.primary:hover {
714
  background: var(--accent-purple-hover) !important;
715
- box-shadow: 0 0 15px rgba(88, 80, 236, 0.4) !important;
716
- }
717
-
718
- input[type="range"]::-webkit-slider-thumb {
719
- background: var(--accent-purple) !important;
720
- }
721
-
722
- input[type="checkbox"]:checked {
723
- background-color: var(--accent-purple) !important;
724
- border-color: var(--accent-purple) !important;
725
  }
726
 
 
727
  .tab-nav button {
728
- color: var(--text-muted) !important;
729
  font-weight: 600 !important;
730
- border-bottom: 2px solid transparent !important;
731
  }
732
 
733
  .tab-nav button.selected {
734
  color: #38bdf8 !important;
735
- border-bottom-color: #38bdf8 !important;
736
- background: transparent !important;
737
- }
738
-
739
- .label-wrap {
740
- color: #ffffff !important;
741
- font-weight: bold !important;
742
  }
743
  """
744
 
 
657
  finally:
658
  shutil.rmtree(work_dir, ignore_errors=True)
659
 
660
+ # CLEAN LIGHT & DARK HYBRID HIGH-CONTRAST CSS
661
  CUSTOM_CSS = r"""
662
  :root {
663
+ --bg-dark: #0f172a;
664
+ --card-bg: #ffffff;
665
+ --border-color: #cbd5e1;
666
+ --text-main: #0f172a;
 
667
  --accent-purple: #5850ec;
668
  --accent-purple-hover: #4338ca;
 
669
  }
670
 
671
  body, .gradio-container {
672
  background-color: var(--bg-dark) !important;
 
 
673
  }
674
 
675
+ /* Card များနှင့် Block များ α€‘α€¬α€Έα€œα€―α€Άα€Έα α€…α€¬α€žα€¬α€Έα€€α€­α€― ထနက်ရောင်/ထပြာရင့်ရောင် α€žα€α€Ία€™α€Ύα€α€Ία€α€Όα€„α€Ία€Έ */
676
+ .ui-card,
677
+ div[data-testid="block"],
678
+ .gr-box,
679
+ .gr-form,
680
+ .accordion,
681
+ details,
682
+ .block {
683
+ background-color: #ffffff !important;
684
  border: 1px solid var(--border-color) !important;
685
+ border-radius: 12px !important;
686
+ color: var(--text-main) !important;
 
 
687
  }
688
 
689
+ /* Slider Title, Checkbox Label နှင့် Block Heading α€…α€¬α€žα€¬α€Έα€™α€»α€¬α€Έ α€‘α€¬α€Έα€œα€―α€Άα€Έα€€α€­α€― ထင်ရှားစွာ မြင်ရထောင် ထနက်ရောင် ပြောင်းခြင်း */
690
+ label,
691
+ label span,
692
+ .block-title,
693
+ span.svelte-1f9ebfk,
694
+ .checkbox-label,
695
+ .checkbox label span,
696
+ div[data-testid="markdownbox"] p,
697
+ .accordion summary,
698
+ .accordion summary span,
699
+ details summary,
700
+ details summary span,
701
+ div[data-testid="checkbox"] span,
702
+ div[data-testid="checkbox"] label {
703
+ color: #0f172a !important;
704
+ font-weight: 700 !important;
705
  font-size: 14px !important;
706
+ opacity: 1 !important;
707
  }
708
 
709
+ /* Text Input, Dropdown နှင့် Slider Box များ၏ α€…α€¬α€žα€¬α€Έα€‘α€›α€±α€¬α€„α€Ί */
710
+ input[type="text"],
711
+ input[type="password"],
712
+ input[type="number"],
713
+ textarea,
714
+ select,
715
+ .secondary,
716
+ .single-select,
717
+ .wrap-inner {
718
+ background-color: #f8fafc !important;
719
+ color: #0f172a !important;
720
+ border: 1px solid #94a3b8 !important;
721
+ border-radius: 8px !important;
722
  font-weight: 600 !important;
 
723
  }
724
 
725
+ /* Dropdown Options */
726
+ option {
727
+ background-color: #ffffff !important;
728
+ color: #0f172a !important;
729
+ }
730
+
731
+ /* Accordion Header ပြင်ဆင်ခြင်း */
732
+ .accordion summary:hover, details summary:hover {
733
+ background-color: #f1f5f9 !important;
734
+ }
735
+
736
+ /* Button စတိုင်များ */
737
  button.primary {
738
  background: var(--accent-purple) !important;
739
  color: #ffffff !important;
740
+ font-weight: 700 !important;
741
+ border-radius: 10px !important;
 
742
  border: none !important;
 
 
743
  }
744
 
745
  button.primary:hover {
746
  background: var(--accent-purple-hover) !important;
 
 
 
 
 
 
 
 
 
 
747
  }
748
 
749
+ /* Tab Navigation */
750
  .tab-nav button {
751
+ color: #94a3b8 !important;
752
  font-weight: 600 !important;
 
753
  }
754
 
755
  .tab-nav button.selected {
756
  color: #38bdf8 !important;
757
+ border-bottom: 3px solid #38bdf8 !important;
 
 
 
 
 
 
758
  }
759
  """
760