oItsMineZ commited on
Commit
9215a3d
·
verified ·
1 Parent(s): e6e472c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -688,7 +688,7 @@ def GradioSetup(UTheme=gr.themes.Soft()):
688
  with gr.Row():
689
  with gr.Column(): # First column for audio-related inputs
690
  dropbox = gr.File(label="Drag your audio here:")
691
- # record_button=gr.Audio(source=["microphone"], type="filepath", label="Or record an audio:")
692
  input_audio0 = gr.Textbox(
693
  label="Manual path to the audio file to be processed",
694
  value=os.path.join(now_dir, "audios", "someguy.mp3"),
@@ -705,7 +705,7 @@ def GradioSetup(UTheme=gr.themes.Soft()):
705
  input_audio0.input(fn=lambda:'',inputs=[],outputs=[input_audio1])
706
 
707
  dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0]).then(fn=change_choices_fix, inputs=[], outputs=[input_audio1])
708
- # record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0]).then(fn=change_choices_fix, inputs=[], outputs=[input_audio1])
709
 
710
  best_match_index_path1 = match_index(sid0.value) # Get initial index from default sid0 (first voice model in list)
711
 
 
688
  with gr.Row():
689
  with gr.Column(): # First column for audio-related inputs
690
  dropbox = gr.File(label="Drag your audio here:")
691
+ record_button=gr.Audio(source=["microphone"], type="filepath", label="Or record an audio:")
692
  input_audio0 = gr.Textbox(
693
  label="Manual path to the audio file to be processed",
694
  value=os.path.join(now_dir, "audios", "someguy.mp3"),
 
705
  input_audio0.input(fn=lambda:'',inputs=[],outputs=[input_audio1])
706
 
707
  dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0]).then(fn=change_choices_fix, inputs=[], outputs=[input_audio1])
708
+ record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0]).then(fn=change_choices_fix, inputs=[], outputs=[input_audio1])
709
 
710
  best_match_index_path1 = match_index(sid0.value) # Get initial index from default sid0 (first voice model in list)
711