Update app.py
Browse files
app.py
CHANGED
@@ -1549,12 +1549,13 @@ with gr.Blocks(theme=theme) as app:
|
|
1549 |
dropbox = gr.File(label="Drag your audio file and click refresh.")
|
1550 |
with gr.Row():
|
1551 |
record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath", visible=False)
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
|
|
1558 |
dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0])
|
1559 |
dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
1560 |
refresh_button2 = gr.Button("Refresh", variant="secondary", size='sm')
|
|
|
1549 |
dropbox = gr.File(label="Drag your audio file and click refresh.")
|
1550 |
with gr.Row():
|
1551 |
record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath", visible=False)
|
1552 |
+
with gr.Row():
|
1553 |
+
input_audio0 = gr.Dropdown(
|
1554 |
+
label="Choose the audio file.",
|
1555 |
+
value="./audios/Test_Audio.mp3",
|
1556 |
+
choices=audio_files,
|
1557 |
+
visible=False,
|
1558 |
+
)
|
1559 |
dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0])
|
1560 |
dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
1561 |
refresh_button2 = gr.Button("Refresh", variant="secondary", size='sm')
|