Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,8 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.the
|
|
65 |
midi_synth = gr.Audio(label="synthesized midi")
|
66 |
upload_button = gr.UploadButton("Upload a MIDI File", file_types=[".mid"])
|
67 |
midi = gr.File(visible=False, value="S00.mid")
|
68 |
-
|
69 |
-
|
70 |
prompt = gr.Textbox(label="prompt", info="Enter a descriptive text prompt to guide the audio generation.")
|
71 |
with gr.Column(variant='panel'):
|
72 |
audio = gr.Audio(label="generated audio")
|
|
|
65 |
midi_synth = gr.Audio(label="synthesized midi")
|
66 |
upload_button = gr.UploadButton("Upload a MIDI File", file_types=[".mid"])
|
67 |
midi = gr.File(visible=False, value="S00.mid")
|
68 |
+
upload_button.upload(upload, upload_button, midi)
|
69 |
+
upload_button.upload(synthesize, upload_button, midi_synth)
|
70 |
prompt = gr.Textbox(label="prompt", info="Enter a descriptive text prompt to guide the audio generation.")
|
71 |
with gr.Column(variant='panel'):
|
72 |
audio = gr.Audio(label="generated audio")
|