Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -384,7 +384,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
384 |
with gr.Column():
|
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")
|
@@ -453,7 +453,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
453 |
|
454 |
with gr.Column():
|
455 |
video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
|
456 |
-
image_prompt_processed = ImageSlider(type="pil", height=300)
|
457 |
model_output = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
|
458 |
|
459 |
with gr.Row():
|
|
|
384 |
with gr.Column():
|
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(label="Input sketch", 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")
|
|
|
453 |
|
454 |
with gr.Column():
|
455 |
video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
|
456 |
+
image_prompt_processed = ImageSlider(label="processed sketch", interactive=False, type="pil", height=300)
|
457 |
model_output = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
|
458 |
|
459 |
with gr.Row():
|