Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -118,18 +118,18 @@ with gr.Blocks() as demo:
|
|
118 |
label="Output Model",
|
119 |
interactive=False,
|
120 |
)
|
121 |
-
with gr.Row(variant="panel"):
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
submit.click(fn=check_input_image, inputs=[input_image]).success(
|
134 |
fn=preprocess,
|
135 |
inputs=[input_image, do_remove_background, foreground_ratio],
|
|
|
118 |
label="Output Model",
|
119 |
interactive=False,
|
120 |
)
|
121 |
+
# with gr.Row(variant="panel"):
|
122 |
+
# gr.Examples(
|
123 |
+
# examples=[
|
124 |
+
# os.path.join("examples", img_name) for img_name in sorted(os.listdir("examples"))
|
125 |
+
# ],
|
126 |
+
# inputs=[input_image],
|
127 |
+
# outputs=[processed_image, output_model, output_model2],
|
128 |
+
# #cache_examples=True,
|
129 |
+
# fn=partial(run_example),
|
130 |
+
# label="Examples",
|
131 |
+
# examples_per_page=20
|
132 |
+
# )
|
133 |
submit.click(fn=check_input_image, inputs=[input_image]).success(
|
134 |
fn=preprocess,
|
135 |
inputs=[input_image, do_remove_background, foreground_ratio],
|