lauraibnz commited on
Commit
f7556b3
·
1 Parent(s): c4f1532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,11 +42,11 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Default(text_size=gr.
42
  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 inputs 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.
43
  """)
44
  with gr.Row():
45
- with gr.Column():
46
  midi = gr.File(label="midi file", file_types=[".mid"])
47
  prompt = gr.Textbox(label="prompt")
48
  neg_prompt = gr.Textbox(label="negative prompt")
49
- with gr.Column():
50
  audio = gr.Audio(label="audio")
51
  with gr.Accordion("Advanced Settings", open=False):
52
  duration = gr.Slider(0, 30, value=5, step=5, label="duration (seconds)")
 
42
  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 inputs 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.
43
  """)
44
  with gr.Row():
45
+ with gr.Column(variant='panel'):
46
  midi = gr.File(label="midi file", file_types=[".mid"])
47
  prompt = gr.Textbox(label="prompt")
48
  neg_prompt = gr.Textbox(label="negative prompt")
49
+ with gr.Column(variant='panel'):
50
  audio = gr.Audio(label="audio")
51
  with gr.Accordion("Advanced Settings", open=False):
52
  duration = gr.Slider(0, 30, value=5, step=5, label="duration (seconds)")