Spaces:
Running
on
Zero
Running
on
Zero
drscotthawley
commited on
Commit
•
40a67c8
1
Parent(s):
867f599
added info
Browse files
app.py
CHANGED
@@ -169,19 +169,22 @@ def process_image(image, repaint, busyness):
|
|
169 |
return gen_image, html, audio_file
|
170 |
|
171 |
|
172 |
-
|
173 |
make_dict = lambda x: {'background':x, 'composite':x, 'layers':[x]}
|
174 |
|
175 |
-
markdown_str = gr.Markdown(
|
176 |
-
"""
|
177 |
-
# Hello World!
|
178 |
-
Start typing below to see the output.
|
179 |
-
""")
|
180 |
|
181 |
with gr.Blocks() as demo:
|
182 |
gr.Markdown(
|
183 |
"""
|
184 |
# Pictures of MIDI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
Choose from the examples at the bottom, and/or select the 'draw' tool (pen with a squiggle on it) to draw shapes to inpaint with notes.
|
186 |
White denotes regions to inpaint. (In the paper we used blue.)
|
187 |
""")
|
|
|
169 |
return gen_image, html, audio_file
|
170 |
|
171 |
|
172 |
+
# for making dictionaries for gradio
|
173 |
make_dict = lambda x: {'background':x, 'composite':x, 'layers':[x]}
|
174 |
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
with gr.Blocks() as demo:
|
177 |
gr.Markdown(
|
178 |
"""
|
179 |
# Pictures of MIDI
|
180 |
+
|
181 |
+
Spaces demo of "Pictures Of MIDI: Controlled Music Generation via Graphical Prompts for Image-Based Diffusion Inpainting" by Scott H. Hawley
|
182 |
+
|
183 |
+
Paper: https://arxiv.org/abs/2407.01499
|
184 |
+
|
185 |
+
Website with examples & more discussion: https://picturesofmidi.github.io/PicturesOfMIDI/
|
186 |
+
|
187 |
+
## Instructions
|
188 |
Choose from the examples at the bottom, and/or select the 'draw' tool (pen with a squiggle on it) to draw shapes to inpaint with notes.
|
189 |
White denotes regions to inpaint. (In the paper we used blue.)
|
190 |
""")
|