Spaces:
Runtime error
Runtime error
Update gradio_demo.py
Browse files- gradio_demo.py +15 -0
gradio_demo.py
CHANGED
@@ -971,6 +971,21 @@ with block:
|
|
971 |
with gr.Row():
|
972 |
extracted_objects = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
973 |
extracted_fg = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
|
975 |
# output_bg = gr.Image(type="numpy", label="Preprocessed Foreground", height=480)
|
976 |
with gr.Group():
|
|
|
971 |
with gr.Row():
|
972 |
extracted_objects = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
973 |
extracted_fg = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
974 |
+
with gr.Row():
|
975 |
+
x_slider = gr.Slider(
|
976 |
+
minimum=0,
|
977 |
+
maximum=1000,
|
978 |
+
label="X Position",
|
979 |
+
value=500,
|
980 |
+
visible=False
|
981 |
+
)
|
982 |
+
y_slider = gr.Slider(
|
983 |
+
minimum=0,
|
984 |
+
maximum=1000,
|
985 |
+
label="Y Position",
|
986 |
+
value=500,
|
987 |
+
visible=False
|
988 |
+
)
|
989 |
|
990 |
# output_bg = gr.Image(type="numpy", label="Preprocessed Foreground", height=480)
|
991 |
with gr.Group():
|