barreloflube commited on
Commit
71c84e0
1 Parent(s): 37c429a

Refactor code to update UI buttons in audio_tab()

Browse files
Files changed (1) hide show
  1. tabs/audios/ui.py +3 -3
tabs/audios/ui.py CHANGED
@@ -14,15 +14,15 @@ def audio_tab():
14
  sft_speaker = gr.Radio(sft_speakers, label="Select speaker")
15
  with gr.Accordion('Voice Clone', open=False):
16
  speaker_audio = gr.Audio(label="Upload Audio", type='numpy', visible=False)
17
- clear_speaker_audio = gr.Button(label="Clear Audio")
18
 
19
  with gr.Accordion('Instruct', open=False):
20
  voice_instructions = gr.Textbox(lines=5, label="Enter voice instructions", visible=False)
21
 
22
  with gr.Column():
23
  output_audio = gr.Audio(label="Output Audio", interactive=False, show_download_button=True)
24
- clear_output_audio = gr.Button(label="Clear Audio")
25
- generate_audio = gr.Button(label="Generate Audio")
26
 
27
 
28
  # Events
 
14
  sft_speaker = gr.Radio(sft_speakers, label="Select speaker")
15
  with gr.Accordion('Voice Clone', open=False):
16
  speaker_audio = gr.Audio(label="Upload Audio", type='numpy', visible=False)
17
+ clear_speaker_audio = gr.Button(value="Clear Audio")
18
 
19
  with gr.Accordion('Instruct', open=False):
20
  voice_instructions = gr.Textbox(lines=5, label="Enter voice instructions", visible=False)
21
 
22
  with gr.Column():
23
  output_audio = gr.Audio(label="Output Audio", interactive=False, show_download_button=True)
24
+ clear_output_audio = gr.Button(value="Clear Audio")
25
+ generate_audio = gr.Button(value="Generate Audio")
26
 
27
 
28
  # Events