Rejekts commited on
Commit
f412d99
1 Parent(s): 2c93885

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -176,7 +176,7 @@ with gr.Blocks() as app:
176
  audio_picker = gr.Dropdown(label="",choices=show_available('audios'),value='',interactive=True)
177
  recorder.stop_recording(upload_file, inputs=[recorder],outputs=[audio_picker])
178
  with gr.TabItem("(Or upload a new file here)"):
179
- dropbox = gr.File(label="Drop an audio here.",file_types=['.wav', '.mp3', '.ogg', '.flac', '.aac'], type="file")
180
  dropbox.upload(fn=upload_file, inputs=[dropbox],outputs=[audio_picker])
181
  audio_refresher = gr.Button("Refresh")
182
  audio_refresher.click(fn=refresh,inputs=[],outputs=[audio_picker,model_picker,index_picker])
 
176
  audio_picker = gr.Dropdown(label="",choices=show_available('audios'),value='',interactive=True)
177
  recorder.stop_recording(upload_file, inputs=[recorder],outputs=[audio_picker])
178
  with gr.TabItem("(Or upload a new file here)"):
179
+ dropbox = gr.File(label="Drop an audio here.",file_types=['.wav', '.mp3', '.ogg', '.flac', '.aac'], type="filepath")
180
  dropbox.upload(fn=upload_file, inputs=[dropbox],outputs=[audio_picker])
181
  audio_refresher = gr.Button("Refresh")
182
  audio_refresher.click(fn=refresh,inputs=[],outputs=[audio_picker,model_picker,index_picker])