TheStinger commited on
Commit
3369e4e
·
verified ·
1 Parent(s): b58ba31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1523,7 +1523,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
1523
  with gr.Row():
1524
  with gr.Column():
1525
  with gr.Row():
1526
- record_button=gr.Audio(label="Drag your audio file and click refresh or use your microphone.", type="filepath")
1527
 
1528
  with gr.Row():
1529
  input_audio0 = gr.Dropdown(
@@ -1531,6 +1531,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
1531
  value="./audios/Test_Audio.mp3",
1532
  choices=audio_files
1533
  )
 
1534
  dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
1535
  refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
1536
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
 
1523
  with gr.Row():
1524
  with gr.Column():
1525
  with gr.Row():
1526
+ record_button=gr.Audio(label="Drag your audio file and click refresh or use your microphone., type="filepath")
1527
 
1528
  with gr.Row():
1529
  input_audio0 = gr.Dropdown(
 
1531
  value="./audios/Test_Audio.mp3",
1532
  choices=audio_files
1533
  )
1534
+ dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0])
1535
  dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
1536
  refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
1537
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])