ui: input top-left, floorplan top-right, output image bottom
Browse files
app.py
CHANGED
|
@@ -210,16 +210,16 @@ with gr.Blocks() as demo:
|
|
| 210 |
with gr.Row():
|
| 211 |
with gr.Column(scale=1):
|
| 212 |
image_input = gr.Image(label="Upload a room image", type="numpy")
|
|
|
|
| 213 |
floor_plan = FloorPlan(
|
| 214 |
value=DEFAULT_FLOOR_PLAN,
|
| 215 |
label="Floor Plan",
|
| 216 |
interactive=True,
|
| 217 |
)
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
image_output = gr.Image(label="Final Photorealistic Output (Step B)", interactive=False)
|
| 223 |
|
| 224 |
# Wire it: input -> [floor_plan, initial_layout_state, topview_state, topview_before]
|
| 225 |
image_input.change(
|
|
|
|
| 210 |
with gr.Row():
|
| 211 |
with gr.Column(scale=1):
|
| 212 |
image_input = gr.Image(label="Upload a room image", type="numpy")
|
| 213 |
+
with gr.Column(scale=1):
|
| 214 |
floor_plan = FloorPlan(
|
| 215 |
value=DEFAULT_FLOOR_PLAN,
|
| 216 |
label="Floor Plan",
|
| 217 |
interactive=True,
|
| 218 |
)
|
| 219 |
+
generate_button = gr.Button("Generate New Image based on Floor plan", variant="primary")
|
| 220 |
+
topview_before = gr.Image(visible=False)
|
| 221 |
+
topview_after = gr.Image(visible=False)
|
| 222 |
+
image_output = gr.Image(label="Final Photorealistic Output", interactive=False)
|
|
|
|
| 223 |
|
| 224 |
# Wire it: input -> [floor_plan, initial_layout_state, topview_state, topview_before]
|
| 225 |
image_input.change(
|