Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,9 +59,9 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.the
|
|
59 |
""")
|
60 |
with gr.Row():
|
61 |
with gr.Column(variant='panel'):
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
prompt = gr.Textbox(label="prompt", info="Enter a descriptive text prompt to guide the audio generation.")
|
66 |
with gr.Column(variant='panel'):
|
67 |
audio = gr.Audio(label="generated audio")
|
|
|
59 |
""")
|
60 |
with gr.Row():
|
61 |
with gr.Column(variant='panel'):
|
62 |
+
midi_synth = gr.Audio(label="synthesized midi")
|
63 |
+
midi = gr.UploadButton("Upload a MIDI File", file_types=[".mid"], value="S00.mid")
|
64 |
+
midi.upload(synthesize, midi, midi_synth)
|
65 |
prompt = gr.Textbox(label="prompt", info="Enter a descriptive text prompt to guide the audio generation.")
|
66 |
with gr.Column(variant='panel'):
|
67 |
audio = gr.Audio(label="generated audio")
|