lauraibnz commited on
Commit
76db8f4
·
1 Parent(s): 3fd0107

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,8 +63,8 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.the
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
- upload_button = gr.UploadButton("Upload a MIDI file", file_types=[".mid"])
68
  midi = gr.File(visible=False, value="S00.mid")
69
  midi_synth = gr.Audio(label="synthesized midi")
70
  upload_button.upload(upload, upload_button, midi)
 
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
+ upload_button = gr.UploadButton("Upload midi file", file_types=[".mid"], value="S00.mid")
67
  with gr.Column(variant='panel'):
 
68
  midi = gr.File(visible=False, value="S00.mid")
69
  midi_synth = gr.Audio(label="synthesized midi")
70
  upload_button.upload(upload, upload_button, midi)