Spaces:
Running
on
Zero
Running
on
Zero
drscotthawley
commited on
Commit
•
288c3b4
1
Parent(s):
9b341f4
needed lamba defined
Browse files
app.py
CHANGED
@@ -145,6 +145,9 @@ def process_image(image, repaint, busyness):
|
|
145 |
# demo.launch()
|
146 |
|
147 |
|
|
|
|
|
|
|
148 |
|
149 |
demo = gr.Interface(fn=process_image,
|
150 |
inputs=[gr.ImageEditor(sources=["upload",'clipboard'], label="Input Piano Roll Image (White = Gen Notes Here)", value=make_dict('all_black.png'), brush=gr.Brush(colors=["#FFFFFF","#000000"])),
|
|
|
145 |
# demo.launch()
|
146 |
|
147 |
|
148 |
+
make_dict = lambda x: {'background':x, 'composite':x, 'layers':[x]}
|
149 |
+
|
150 |
+
|
151 |
|
152 |
demo = gr.Interface(fn=process_image,
|
153 |
inputs=[gr.ImageEditor(sources=["upload",'clipboard'], label="Input Piano Roll Image (White = Gen Notes Here)", value=make_dict('all_black.png'), brush=gr.Brush(colors=["#FFFFFF","#000000"])),
|