linoyts HF staff commited on
Commit
411c5f9
·
verified ·
1 Parent(s): cf42692

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -381,13 +381,14 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
381
  with gr.Tabs() as input_tabs:
382
  with gr.Tab(label="Single Image", id=0) as single_image_input_tab:
383
  #image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
384
- image_prompt = gr.ImageEditor(type="pil", image_mode="L", crop_size=(512, 512))
385
- with gr.Row():
386
- sketch_btn = gr.Button("process sketch")
387
- generate_btn = gr.Button("Generate 3D")
388
- with gr.Row():
389
- prompt = gr.Textbox(label="Prompt")
390
- style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
 
391
 
392
  with gr.Tab(label="Multiple Images", id=1, visible=False) as multiimage_input_tab:
393
  multiimage_prompt = gr.Gallery(label="Image Prompt", format="png", type="pil", height=300, columns=3)
 
381
  with gr.Tabs() as input_tabs:
382
  with gr.Tab(label="Single Image", id=0) as single_image_input_tab:
383
  #image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
384
+ with gr.Group():
385
+ image_prompt = gr.ImageEditor(type="pil", image_mode="L", height=300)
386
+ with gr.Row():
387
+ sketch_btn = gr.Button("process sketch")
388
+ generate_btn = gr.Button("Generate 3D")
389
+ with gr.Row():
390
+ prompt = gr.Textbox(label="Prompt")
391
+ style = gr.Dropdown(label="Style", choices=STYLE_NAMES, value=DEFAULT_STYLE_NAME)
392
 
393
  with gr.Tab(label="Multiple Images", id=1, visible=False) as multiimage_input_tab:
394
  multiimage_prompt = gr.Gallery(label="Image Prompt", format="png", type="pil", height=300, columns=3)