Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -285,6 +285,7 @@ with gr.Blocks() as app:
|
|
285 |
except:#Version Compatibiliy
|
286 |
dropbox = gr.File(label="Drop an audio here.",file_types=['.wav', '.mp3', '.ogg', '.flac', '.aac'], type="file")
|
287 |
dropbox.upload(fn=upload_file, inputs=[dropbox],outputs=[audio_picker])
|
|
|
288 |
audio_refresher = gr.Button("Refresh")
|
289 |
audio_refresher.click(fn=refresh,inputs=[],outputs=[audio_picker,model_picker,index_picker])
|
290 |
convert_button = gr.Button("Convert")
|
@@ -292,6 +293,12 @@ with gr.Blocks() as app:
|
|
292 |
audio_player = gr.Audio()
|
293 |
inputs = [audio_picker,model_picker,index_picker,index_rate,pitch,method]
|
294 |
audio_picker.change(fn=update_audio_player, inputs=[audio_picker],outputs=[audio_player])
|
|
|
295 |
convert_button.click(convert, inputs=inputs,outputs=[audio_picker,audio_player])
|
296 |
|
297 |
-
app.queue(
|
|
|
|
|
|
|
|
|
|
|
|
285 |
except:#Version Compatibiliy
|
286 |
dropbox = gr.File(label="Drop an audio here.",file_types=['.wav', '.mp3', '.ogg', '.flac', '.aac'], type="file")
|
287 |
dropbox.upload(fn=upload_file, inputs=[dropbox],outputs=[audio_picker])
|
288 |
+
with gr.Row():
|
289 |
audio_refresher = gr.Button("Refresh")
|
290 |
audio_refresher.click(fn=refresh,inputs=[],outputs=[audio_picker,model_picker,index_picker])
|
291 |
convert_button = gr.Button("Convert")
|
|
|
293 |
audio_player = gr.Audio()
|
294 |
inputs = [audio_picker,model_picker,index_picker,index_rate,pitch,method]
|
295 |
audio_picker.change(fn=update_audio_player, inputs=[audio_picker],outputs=[audio_player])
|
296 |
+
with gr.Row():
|
297 |
convert_button.click(convert, inputs=inputs,outputs=[audio_picker,audio_player])
|
298 |
|
299 |
+
app.queue(
|
300 |
+
max_size=20
|
301 |
+
).launch(
|
302 |
+
debug=True,
|
303 |
+
share=True
|
304 |
+
)
|