Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -950,21 +950,20 @@ with block:
|
|
950 |
placeholder="Enter object classes separated by periods (e.g. 'car . person .')",
|
951 |
value="couch . table ."
|
952 |
)
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
)
|
968 |
extract_button = gr.Button(value="(Option 2) Remove Background")
|
969 |
with gr.Row():
|
970 |
extracted_objects = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|
|
|
950 |
placeholder="Enter object classes separated by periods (e.g. 'car . person .')",
|
951 |
value="couch . table ."
|
952 |
)
|
953 |
+
x_slider = gr.Slider(
|
954 |
+
minimum=0,
|
955 |
+
maximum=1000,
|
956 |
+
label="X Position",
|
957 |
+
value=500,
|
958 |
+
visible=False
|
959 |
+
)
|
960 |
+
y_slider = gr.Slider(
|
961 |
+
minimum=0,
|
962 |
+
maximum=1000,
|
963 |
+
label="Y Position",
|
964 |
+
value=500,
|
965 |
+
visible=False
|
966 |
+
)
|
|
|
967 |
extract_button = gr.Button(value="(Option 2) Remove Background")
|
968 |
with gr.Row():
|
969 |
extracted_objects = gr.Image(type="numpy", label="Extracted Foreground", height=480)
|