linoyts HF staff commited on
Commit
72d93a2
·
verified ·
1 Parent(s): 626bba1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -385,12 +385,12 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
385
  #image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
386
  with gr.Column():
387
  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))})
388
- with gr.Row():
389
- sketch_btn = gr.Button("process sketch")
390
- generate_btn = gr.Button("Generate 3D")
391
- with gr.Row():
392
- prompt = gr.Textbox(label="Prompt")
393
- style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
394
 
395
  with gr.Tab(label="Multiple Images", id=1, visible=False) as multiimage_input_tab:
396
  multiimage_prompt = gr.Gallery(label="Image Prompt", format="png", type="pil", height=300, columns=3)
 
385
  #image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
386
  with gr.Column():
387
  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))})
388
+ with gr.Row():
389
+ sketch_btn = gr.Button("process sketch")
390
+ generate_btn = gr.Button("Generate 3D")
391
+ with gr.Row():
392
+ prompt = gr.Textbox(label="Prompt")
393
+ style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
394
 
395
  with gr.Tab(label="Multiple Images", id=1, visible=False) as multiimage_input_tab:
396
  multiimage_prompt = gr.Gallery(label="Image Prompt", format="png", type="pil", height=300, columns=3)