notmax123 commited on
Commit
39cd3ce
·
1 Parent(s): 44e79d3

Update app.py and voice styles (female2, male1)

Browse files
Files changed (3) hide show
  1. app.py +4 -59
  2. voices/female2.json +0 -0
  3. voices/male1.json +0 -0
app.py CHANGED
@@ -902,70 +902,15 @@ body, .gradio-container {
902
 
903
  /* Dropdown styling */
904
  .ctrl-lang .gradio-dropdown > label > div,
905
- .ctrl-lang .gradio-dropdown > label > div > div {
 
 
906
  background: #0d0d14 !important;
907
  border: 1px solid #2a2a3e !important;
908
  border-radius: 8px !important;
909
  color: #e8e8f0 !important;
910
  }
911
 
912
- /* Voice radio — pill buttons */
913
- .ctrl-voice .gradio-radio fieldset {
914
- border: none !important;
915
- padding: 0 !important;
916
- margin: 0 !important;
917
- }
918
- .ctrl-voice .gradio-radio fieldset > div {
919
- display: flex !important;
920
- flex-direction: row !important;
921
- flex-wrap: wrap !important;
922
- gap: 0.4rem !important;
923
- margin-top: 0.35rem !important;
924
- }
925
- .ctrl-voice .gradio-radio fieldset > div > label {
926
- flex: 1 !important;
927
- min-width: 80px !important;
928
- display: flex !important;
929
- align-items: center !important;
930
- justify-content: center !important;
931
- height: 36px !important;
932
- background: #0d0d14 !important;
933
- border: 1px solid #2a2a3e !important;
934
- border-radius: 8px !important;
935
- cursor: pointer !important;
936
- transition: border-color 0.15s, background 0.15s !important;
937
- padding: 0 0.75rem !important;
938
- gap: 0.4rem !important;
939
- }
940
- .ctrl-voice .gradio-radio fieldset > div > label:has(input:checked) {
941
- background: #0f1f3d !important;
942
- border-color: #60a5fa !important;
943
- }
944
- .ctrl-voice .gradio-radio fieldset > div > label > input[type=radio] {
945
- width: 14px !important;
946
- height: 14px !important;
947
- accent-color: #60a5fa !important;
948
- flex-shrink: 0 !important;
949
- }
950
- .ctrl-voice .gradio-radio fieldset > div > label > span {
951
- color: #c4c4d4 !important;
952
- font-size: 0.82rem !important;
953
- font-weight: 500 !important;
954
- text-transform: none !important;
955
- letter-spacing: normal !important;
956
- white-space: nowrap !important;
957
- }
958
- .ctrl-voice .gradio-radio fieldset > div > label:has(input:checked) > span {
959
- color: #60a5fa !important;
960
- }
961
- .ctrl-voice .gradio-radio legend span {
962
- color: #9ca3af !important;
963
- font-size: 0.75rem !important;
964
- font-weight: 600 !important;
965
- text-transform: uppercase !important;
966
- letter-spacing: 0.06em !important;
967
- }
968
-
969
  /* Sliders */
970
  .ctrl-steps .gradio-slider,
971
  .ctrl-speed .gradio-slider { width: 100% !important; }
@@ -1055,7 +1000,7 @@ with gr.Blocks(title="BlueTTS — Multilingual TTS") as demo:
1055
  value="en", label="Language",
1056
  )
1057
  with gr.Column(elem_classes="ctrl-voice"):
1058
- voice_input = gr.Radio(
1059
  choices=list(VOICES.keys()), value="Female 1", label="Voice",
1060
  )
1061
  with gr.Row(elem_classes="ctrl-row2"):
 
902
 
903
  /* Dropdown styling */
904
  .ctrl-lang .gradio-dropdown > label > div,
905
+ .ctrl-lang .gradio-dropdown > label > div > div,
906
+ .ctrl-voice .gradio-dropdown > label > div,
907
+ .ctrl-voice .gradio-dropdown > label > div > div {
908
  background: #0d0d14 !important;
909
  border: 1px solid #2a2a3e !important;
910
  border-radius: 8px !important;
911
  color: #e8e8f0 !important;
912
  }
913
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
914
  /* Sliders */
915
  .ctrl-steps .gradio-slider,
916
  .ctrl-speed .gradio-slider { width: 100% !important; }
 
1000
  value="en", label="Language",
1001
  )
1002
  with gr.Column(elem_classes="ctrl-voice"):
1003
+ voice_input = gr.Dropdown(
1004
  choices=list(VOICES.keys()), value="Female 1", label="Voice",
1005
  )
1006
  with gr.Row(elem_classes="ctrl-row2"):
voices/female2.json CHANGED
The diff for this file is too large to render. See raw diff
 
voices/male1.json CHANGED
The diff for this file is too large to render. See raw diff