Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
863 |
-
choices=["True", "False"], # Use strings
|
864 |
label="Remove Silences",
|
865 |
-
value=
|
|
|
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 |
-
|
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}}
|