Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,27 +8,24 @@ with demo:
|
|
8 |
|
9 |
gr.Markdown("# **<p align='center'>FurnishAI</p>**")
|
10 |
|
11 |
-
with gr.
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
with gr.
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
with gr.Column():
|
20 |
-
gr.Markdown("**Outputs**")
|
21 |
-
output_heading = gr.Textbox(label="Output Type", show_label=True)
|
22 |
-
output_mask = gr.Image(label="Predicted Masks", show_label=True)
|
23 |
-
selected_mask = gr.Image(label="Selected Mask", show_label=True)
|
24 |
|
25 |
gr.Markdown("**Predict**")
|
26 |
|
27 |
-
with gr.
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
gr.Markdown("**Examples:**")
|
33 |
submit_button.click(predict_masks, inputs=[input_image], outputs=[output_mask, output_heading, labels_dropdown])
|
34 |
generate_mask_button.click(get_mask_for_label, inputs=[predict_masks(input_image), labels_dropdown], outputs=[selected_mask])
|
|
|
8 |
|
9 |
gr.Markdown("# **<p align='center'>FurnishAI</p>**")
|
10 |
|
11 |
+
with gr.Row():
|
12 |
+
with gr.Column():
|
13 |
+
gr.Markdown("**Inputs**")
|
14 |
+
input_image = gr.Image(type='filepath',label="Input Image", show_label=True)
|
15 |
+
labels_dropdown = gr.Dropdown(label="Labels", show_label=True)
|
16 |
|
17 |
+
with gr.Column():
|
18 |
+
gr.Markdown("**Outputs**")
|
19 |
+
output_heading = gr.Textbox(label="Output Type", show_label=True)
|
20 |
+
output_mask = gr.Image(label="Predicted Masks", show_label=True)
|
21 |
+
selected_mask = gr.Image(label="Selected Mask", show_label=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
gr.Markdown("**Predict**")
|
24 |
|
25 |
+
with gr.Row():
|
26 |
+
submit_button = gr.Button("Submit")
|
27 |
+
generate_mask_button = gr.Button("Generate Mask")
|
28 |
+
|
|
|
29 |
gr.Markdown("**Examples:**")
|
30 |
submit_button.click(predict_masks, inputs=[input_image], outputs=[output_mask, output_heading, labels_dropdown])
|
31 |
generate_mask_button.click(get_mask_for_label, inputs=[predict_masks(input_image), labels_dropdown], outputs=[selected_mask])
|