rmysmo commited on
Commit
91a01fd
1 Parent(s): 961bf6b

fixed text

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -1531,15 +1531,15 @@ with gr.Blocks(theme=gr.themes.Base(), title='Voice DeepFake 💻') as app:
1531
  refresh_button2 = gr.Button("Обновить", variant="primary", size='sm')
1532
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1533
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1534
- with gr.Row():
1535
- with gr.Accordion('Текст в речь', open=False):
1536
- with gr.Column():
1537
- lang = gr.Radio(label='Выберите язык для озвучки.',choices=['en','es','ru','uk','pl','fr','de','tr'], value='en')
1538
- elevenid=gr.Dropdown(label="Голос:", choices=eleven_voices)
1539
- with gr.Column():
1540
- tfs = gr.Textbox(label="Введите свой текст", interactive=True, value="This is a test.")
1541
- tts_button = gr.Button(value="Генерировать")
1542
- tts_button.click(fn=elevenTTS, inputs=[tfs, elevenid, lang], outputs=[record_button, input_audio0])
1543
  with gr.Row():
1544
  with gr.Accordion('Wav2Lip', open=False, visible=False):
1545
  with gr.Row():
 
1531
  refresh_button2 = gr.Button("Обновить", variant="primary", size='sm')
1532
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1533
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1534
+ # with gr.Row():
1535
+ # with gr.Accordion('Текст в речь', open=False):
1536
+ # with gr.Column():
1537
+ # lang = gr.Radio(label='Выберите язык для озвучки.',choices=['en','es','ru','uk','pl','fr','de','tr'], value='en')
1538
+ # elevenid=gr.Dropdown(label="Голос:", choices=eleven_voices)
1539
+ # with gr.Column():
1540
+ # tfs = gr.Textbox(label="Введите свой текст", interactive=True, value="This is a test.")
1541
+ # tts_button = gr.Button(value="Генерировать")
1542
+ # tts_button.click(fn=elevenTTS, inputs=[tfs, elevenid, lang], outputs=[record_button, input_audio0])
1543
  with gr.Row():
1544
  with gr.Accordion('Wav2Lip', open=False, visible=False):
1545
  with gr.Row():