linoyts HF staff commited on
Commit
bb86fd6
·
verified ·
1 Parent(s): 604a92b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -381,14 +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
- 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)
 
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.Column():
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)