Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -293,12 +293,12 @@ with gr.Blocks() as basic_tts:
|
|
293 |
with gr.Accordion('Output Tokens', open=True):
|
294 |
out_ps = gr.Textbox(interactive=False, show_label=False, info='Tokens used to generate the audio, up to 510 allowed. Same as input tokens if supplied, excluding unknowns.')
|
295 |
with gr.Row():
|
296 |
-
_reduce_noise = gr.Slider(value=0.5,
|
297 |
-
_closing_cut = gr.Slider(value=2000,
|
298 |
-
_ease_in = gr.Slider(value=3000,
|
299 |
-
_ease_out = gr.Slider(value=1000,
|
300 |
-
_pad_before = gr.Slider(value=5000,
|
301 |
-
_pad_after = gr.Slider(value=5000,
|
302 |
text.submit(generate, inputs=[text, voice, in_ps, speed, _reduce_noise, trim, _closing_cut, _ease_in, _ease_out, _pad_before, _pad_after, use_gpu], outputs=[audio, out_ps])
|
303 |
generate_btn.click(generate, inputs=[text, voice, in_ps, speed, _reduce_noise, trim, _closing_cut, _ease_in, _ease_out, _pad_before, _pad_after, use_gpu], outputs=[audio, out_ps])
|
304 |
|
|
|
293 |
with gr.Accordion('Output Tokens', open=True):
|
294 |
out_ps = gr.Textbox(interactive=False, show_label=False, info='Tokens used to generate the audio, up to 510 allowed. Same as input tokens if supplied, excluding unknowns.')
|
295 |
with gr.Row():
|
296 |
+
_reduce_noise = gr.Slider(value=0.5, interactive=False, visible=False)
|
297 |
+
_closing_cut = gr.Slider(value=2000, interactive=False, visible=False)
|
298 |
+
_ease_in = gr.Slider(value=3000, interactive=False, visible=False)
|
299 |
+
_ease_out = gr.Slider(value=1000, interactive=False, visible=False)
|
300 |
+
_pad_before = gr.Slider(value=5000, interactive=False, visible=False)
|
301 |
+
_pad_after = gr.Slider(value=5000, interactive=False, visible=False)
|
302 |
text.submit(generate, inputs=[text, voice, in_ps, speed, _reduce_noise, trim, _closing_cut, _ease_in, _ease_out, _pad_before, _pad_after, use_gpu], outputs=[audio, out_ps])
|
303 |
generate_btn.click(generate, inputs=[text, voice, in_ps, speed, _reduce_noise, trim, _closing_cut, _ease_in, _ease_out, _pad_before, _pad_after, use_gpu], outputs=[audio, out_ps])
|
304 |
|