Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -859,12 +859,12 @@ with gr.Blocks() as app_emotional:
|
|
| 859 |
)
|
| 860 |
|
| 861 |
with gr.Accordion("Advanced Settings", open=False):
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
# Generate button
|
| 869 |
generate_emotional_btn = gr.Button("Generate Emotional Speech", variant="primary")
|
| 870 |
|
|
@@ -883,9 +883,8 @@ with gr.Blocks() as app_emotional:
|
|
| 883 |
speech_type_audios_list = args[num_additional_speech_types : 2 * num_additional_speech_types]
|
| 884 |
speech_type_ref_texts_list = args[2 * num_additional_speech_types : 3 * num_additional_speech_types]
|
| 885 |
model_choice = args[3 * num_additional_speech_types]
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
# remove_silence = remove_silence_str == "True"
|
| 889 |
|
| 890 |
|
| 891 |
# Collect the speech types and their audios into a dict
|
|
|
|
| 859 |
)
|
| 860 |
|
| 861 |
with gr.Accordion("Advanced Settings", open=False):
|
| 862 |
+
remove_silence_emotional = gr.Radio(
|
| 863 |
+
choices=["True", "False"], # Use string choices
|
| 864 |
+
label="Remove Silences",
|
| 865 |
+
value="False", # Use string default
|
| 866 |
+
info="Manually remove silences (experimental).",
|
| 867 |
+
)
|
| 868 |
# Generate button
|
| 869 |
generate_emotional_btn = gr.Button("Generate Emotional Speech", variant="primary")
|
| 870 |
|
|
|
|
| 883 |
speech_type_audios_list = args[num_additional_speech_types : 2 * num_additional_speech_types]
|
| 884 |
speech_type_ref_texts_list = args[2 * num_additional_speech_types : 3 * num_additional_speech_types]
|
| 885 |
model_choice = args[3 * num_additional_speech_types]
|
| 886 |
+
remove_silence_str = args[3 * num_additional_speech_types + 1] # Get the string value ("True" or "False")
|
| 887 |
+
remove_silence = remove_silence_str == "True" # Convert string to boolean
|
|
|
|
| 888 |
|
| 889 |
|
| 890 |
# Collect the speech types and their audios into a dict
|