linoyts HF staff commited on
Commit
67608e3
·
verified ·
1 Parent(s): ed3a4d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -383,7 +383,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
383
  with gr.Row():
384
  with gr.Column():
385
  with gr.Tabs() as input_tabs:
386
- with gr.Tab(label="Single Image", id=0) as single_image_input_tab:
387
  #image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
388
  with gr.Column():
389
  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))})
@@ -455,7 +455,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
455
 
456
  with gr.Column():
457
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
458
- image_prompt_processed = ImageSlider(type="pil", height=512)
459
  model_output = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
460
 
461
  with gr.Row():
 
383
  with gr.Row():
384
  with gr.Column():
385
  with gr.Tabs() as input_tabs:
386
+ with gr.Tab(label="", id=0) as single_image_input_tab:
387
  #image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=300)
388
  with gr.Column():
389
  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))})
 
455
 
456
  with gr.Column():
457
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
458
+ image_prompt_processed = ImageSlider(type="pil", height=300)
459
  model_output = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
460
 
461
  with gr.Row():