Gregniuki commited on
Commit
7ae9af3
·
verified ·
1 Parent(s): 4afa588

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -859,10 +859,10 @@ with gr.Blocks() as app_emotional:
859
  )
860
 
861
  with gr.Accordion("Advanced Settings", open=False):
862
- remove_silence_emotional = gr.Radio(
863
- choices=["True", "False"], # Use strings
864
  label="Remove Silences",
865
- value="True", # Use string default
 
866
  )
867
 
868
  # Generate button
@@ -886,8 +886,7 @@ with gr.Blocks() as app_emotional:
886
  remove_silence_str = args[3 * num_additional_speech_types + 1] # Get the string value
887
 
888
  remove_silence = remove_silence_str == "True"
889
- model_choice = args[3 * num_additional_speech_types]
890
- remove_silence = args[3 * num_additional_speech_types + 1]
891
 
892
  # Collect the speech types and their audios into a dict
893
  speech_types = {'Regular': {'audio': regular_audio, 'ref_text': regular_ref_text}}
 
859
  )
860
 
861
  with gr.Accordion("Advanced Settings", open=False):
862
+ remove_silence_emotional = gr.Checkbox(
 
863
  label="Remove Silences",
864
+ value=True, # Use boolean default
865
+ info="Manually remove silences (experimental).", # Optional: Add info consistent with the other tab
866
  )
867
 
868
  # Generate button
 
886
  remove_silence_str = args[3 * num_additional_speech_types + 1] # Get the string value
887
 
888
  remove_silence = remove_silence_str == "True"
889
+
 
890
 
891
  # Collect the speech types and their audios into a dict
892
  speech_types = {'Regular': {'audio': regular_audio, 'ref_text': regular_ref_text}}