versae commited on
Commit
8f21b0f
1 Parent(s): b68e3a3

Add ref text

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -166,7 +166,7 @@ with gr.Blocks() as app_credits:
166
  with gr.Blocks() as app_tts:
167
  gr.Markdown("# Batched TTS")
168
  ref_audio_input = gr.Audio(label="Reference Audio", type="filepath", visible=False, value=Path("./sample.wav"))
169
- gen_text_input = gr.Textbox(label="Text to Generate", lines=10)
170
  generate_btn = gr.Button("Synthesize", variant="primary")
171
  with gr.Accordion("Advanced Settings", open=False):
172
  ref_text_input = gr.Textbox(
 
166
  with gr.Blocks() as app_tts:
167
  gr.Markdown("# Batched TTS")
168
  ref_audio_input = gr.Audio(label="Reference Audio", type="filepath", visible=False, value=Path("./sample.wav"))
169
+ gen_text_input = gr.Textbox(label="Text to Generate", lines=10, value=Path("./sample.txt").read_text())
170
  generate_btn = gr.Button("Synthesize", variant="primary")
171
  with gr.Accordion("Advanced Settings", open=False):
172
  ref_text_input = gr.Textbox(