Spaces:
Runtime error
Runtime error
separate image output component for mask
Browse files
app.py
CHANGED
|
@@ -143,14 +143,10 @@ with gr.Blocks() as demo:
|
|
| 143 |
value=20,
|
| 144 |
)
|
| 145 |
with gr.Column():
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
preview=True,
|
| 151 |
-
object_fit="contain",
|
| 152 |
-
height="auto",
|
| 153 |
-
label='Generated image')
|
| 154 |
|
| 155 |
submit_button_component.click(
|
| 156 |
fn=process,
|
|
@@ -163,7 +159,8 @@ with gr.Blocks() as demo:
|
|
| 163 |
num_inference_steps_slider_component
|
| 164 |
],
|
| 165 |
outputs=[
|
| 166 |
-
|
|
|
|
| 167 |
]
|
| 168 |
)
|
| 169 |
|
|
|
|
| 143 |
value=20,
|
| 144 |
)
|
| 145 |
with gr.Column():
|
| 146 |
+
output_image_component = gr.Image(
|
| 147 |
+
type='pil', image_mode='RGB', label='Generated image')
|
| 148 |
+
output_mask_component = gr.Image(
|
| 149 |
+
type='pil', image_mode='RGB', label='Input mask')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
submit_button_component.click(
|
| 152 |
fn=process,
|
|
|
|
| 159 |
num_inference_steps_slider_component
|
| 160 |
],
|
| 161 |
outputs=[
|
| 162 |
+
output_image_component,
|
| 163 |
+
output_mask_component
|
| 164 |
]
|
| 165 |
)
|
| 166 |
|