Spaces:
Running
Running
Update app.py
Browse files
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="
|
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])
|