Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -385,7 +385,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
385 |
with gr.Tab(label="Single Image", id=0) as single_image_input_tab:
|
386 |
#image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
|
387 |
with gr.Column():
|
388 |
-
image_prompt = gr.ImageMask(type="pil", image_mode="RGB", height=512)
|
389 |
with gr.Row():
|
390 |
sketch_btn = gr.Button("process sketch")
|
391 |
generate_btn = gr.Button("Generate 3D")
|
|
|
385 |
with gr.Tab(label="Single Image", id=0) as single_image_input_tab:
|
386 |
#image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
|
387 |
with gr.Column():
|
388 |
+
image_prompt = gr.ImageMask(type="pil", image_mode="RGB", height=512, value={"background":Image.new("RGB", (512, 512), (255, 255, 255)), "layers":[Image.new("RGB", (512, 512), (255, 255, 255))], "composite":Image.new("RGB", (512, 512), (255, 255, 255))})
|
389 |
with gr.Row():
|
390 |
sketch_btn = gr.Button("process sketch")
|
391 |
generate_btn = gr.Button("Generate 3D")
|