hexgrad commited on
Commit
eeb2e71
·
verified ·
1 Parent(s): 30b25ce

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -321,8 +321,8 @@ with gr.Blocks() as basic_tts:
321
  btn = gr.Button(list(CHOICES.values())[i*4+j], variant='primary' if i*4+j < 10 else 'secondary')
322
  btn.click(lambda v, b: f'{v}+{b}' if v.startswith(b[:2]) else b, inputs=[voice, btn], outputs=[voice])
323
  voice.change(lambda v, b: gr.Button(b, variant='primary' if v.startswith(b[:2]) else 'secondary'), inputs=[voice, btn], outputs=[btn])
324
- text.submit(generate, inputs=[text, voice, in_ps, speed, trim, use_gpu], outputs=[audio, out_ps])
325
- generate_btn.click(generate, inputs=[text, voice, in_ps, speed, trim, use_gpu], outputs=[audio, out_ps])
326
  sh = gr.State()
327
  basic_tts.load(lambda r: r.session_hash, None, sh)
328
 
 
321
  btn = gr.Button(list(CHOICES.values())[i*4+j], variant='primary' if i*4+j < 10 else 'secondary')
322
  btn.click(lambda v, b: f'{v}+{b}' if v.startswith(b[:2]) else b, inputs=[voice, btn], outputs=[voice])
323
  voice.change(lambda v, b: gr.Button(b, variant='primary' if v.startswith(b[:2]) else 'secondary'), inputs=[voice, btn], outputs=[btn])
324
+ text.submit(generate, inputs=[text, voice, in_ps, speed, trim, use_gpu, sh], outputs=[audio, out_ps])
325
+ generate_btn.click(generate, inputs=[text, voice, in_ps, speed, trim, use_gpu, sh], outputs=[audio, out_ps])
326
  sh = gr.State()
327
  basic_tts.load(lambda r: r.session_hash, None, sh)
328