Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ with gr.Blocks() as casa:
|
|
72 |
with gr.Column():
|
73 |
inputs = [
|
74 |
gr.Image(sources='upload', type="pil", label="Upload"),
|
75 |
-
gr.Textbox(label="Prompt for redesigning masked object")]
|
76 |
# gr.Dropdown(
|
77 |
# label="Room type",
|
78 |
# choices=["Living Room", "Bedroom", "Home Office", "Dining Room", "Kitchen", "Bathroom"],
|
@@ -91,9 +91,11 @@ with gr.Blocks() as casa:
|
|
91 |
]
|
92 |
with gr.Column():
|
93 |
outputs = [gr.Image(label="Generated room image")]
|
|
|
|
|
94 |
|
95 |
submit_btn = gr.Button("Generate")
|
96 |
-
submit_btn.click(casa_ai_run_tab1, inputs=inputs, outputs=outputs)
|
97 |
|
98 |
|
99 |
with gr.Tab("ReDesign"):
|
|
|
72 |
with gr.Column():
|
73 |
inputs = [
|
74 |
gr.Image(sources='upload', type="pil", label="Upload"),
|
75 |
+
# gr.Textbox(label="Prompt for redesigning masked object")]
|
76 |
# gr.Dropdown(
|
77 |
# label="Room type",
|
78 |
# choices=["Living Room", "Bedroom", "Home Office", "Dining Room", "Kitchen", "Bathroom"],
|
|
|
91 |
]
|
92 |
with gr.Column():
|
93 |
outputs = [gr.Image(label="Generated room image")]
|
94 |
+
|
95 |
+
inputs_text = gr.Textbox(label="Prompt for redesigning masked object")]
|
96 |
|
97 |
submit_btn = gr.Button("Generate")
|
98 |
+
submit_btn.click(casa_ai_run_tab1, inputs=inputs.append(inputs_text), outputs=outputs)
|
99 |
|
100 |
|
101 |
with gr.Tab("ReDesign"):
|