Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,12 +62,12 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.the
|
|
62 |
"""
|
63 |
MIDI-AudioLDM is a MIDI-conditioned text-to-audio model based on the project [AudioLDM](https://huggingface.co/spaces/haoheliu/audioldm-text-to-audio-generation). The model has been conditioned using the ControlNet architecture and has been developed within Hugging Face’s [🧨 Diffusers](https://huggingface.co/docs/diffusers/) framework. Once trained, MIDI-AudioLDM accepts a MIDI file and a text prompt as input and returns an audio file, which is an interpretation of the MIDI based on the given text description. This enables detailed control over different musical aspects such as notes, mood and timbre.
|
64 |
""")
|
|
|
|
|
65 |
with gr.Row():
|
66 |
with gr.Column(variant='panel'):
|
67 |
-
midi = gr.File(label="midi file", file_types=[".mid"])
|
68 |
midi_synth = gr.Audio(label="synthesized midi")
|
69 |
midi.upload(synthesize, midi, 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")
|
73 |
with gr.Accordion("Advanced Settings", open=False):
|
|
|
62 |
"""
|
63 |
MIDI-AudioLDM is a MIDI-conditioned text-to-audio model based on the project [AudioLDM](https://huggingface.co/spaces/haoheliu/audioldm-text-to-audio-generation). The model has been conditioned using the ControlNet architecture and has been developed within Hugging Face’s [🧨 Diffusers](https://huggingface.co/docs/diffusers/) framework. Once trained, MIDI-AudioLDM accepts a MIDI file and a text prompt as input and returns an audio file, which is an interpretation of the MIDI based on the given text description. This enables detailed control over different musical aspects such as notes, mood and timbre.
|
64 |
""")
|
65 |
+
midi = gr.File(label="midi file", file_types=[".mid"])
|
66 |
+
prompt = gr.Textbox(label="prompt", info="Enter a descriptive text prompt to guide the audio generation.")
|
67 |
with gr.Row():
|
68 |
with gr.Column(variant='panel'):
|
|
|
69 |
midi_synth = gr.Audio(label="synthesized midi")
|
70 |
midi.upload(synthesize, midi, midi_synth)
|
|
|
71 |
with gr.Column(variant='panel'):
|
72 |
audio = gr.Audio(label="generated audio")
|
73 |
with gr.Accordion("Advanced Settings", open=False):
|