linoyts HF staff commited on
Commit
6fc2413
·
verified ·
1 Parent(s): 12ecceb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")