Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,14 +60,14 @@ with gr.Blocks() as app:
|
|
60 |
|
61 |
# Custom sliders for the bounding box selection
|
62 |
with gr.Row(visible=True) as custom_controls:
|
63 |
-
x_min_slider = gr.Slider(minimum=x_min_range, maximum=x_max_range, step=0.01, label="X Min", value=x_min_range
|
64 |
-
x_max_slider = gr.Slider(minimum=x_min_range, maximum=x_max_range, step=0.01, label="X Max", value=x_max_range
|
65 |
|
66 |
-
y_min_slider = gr.Slider(minimum=y_min_range, maximum=y_max_range, step=0.01, label="Y Min", value=y_min_range
|
67 |
-
y_max_slider = gr.Slider(minimum=y_min_range, maximum=y_max_range, step=0.01, label="Y Max", value=y_max_range
|
68 |
|
69 |
-
z_min_slider = gr.Slider(minimum=z_min_range, maximum=z_max_range, step=0.01, label="Z Min", value=z_min_range
|
70 |
-
z_max_slider = gr.Slider(minimum=z_min_range, maximum=z_max_range, step=0.01, label="Z Max", value=z_max_range
|
71 |
|
72 |
# Toggle visibility of custom controls
|
73 |
def toggle_custom_controls(predefined_section):
|
|
|
60 |
|
61 |
# Custom sliders for the bounding box selection
|
62 |
with gr.Row(visible=True) as custom_controls:
|
63 |
+
x_min_slider = gr.Slider(minimum=x_min_range, maximum=x_max_range, step=0.01, label="X Min", value=x_min_range)
|
64 |
+
x_max_slider = gr.Slider(minimum=x_min_range, maximum=x_max_range, step=0.01, label="X Max", value=x_max_range)
|
65 |
|
66 |
+
y_min_slider = gr.Slider(minimum=y_min_range, maximum=y_max_range, step=0.01, label="Y Min", value=y_min_range)
|
67 |
+
y_max_slider = gr.Slider(minimum=y_min_range, maximum=y_max_range, step=0.01, label="Y Max", value=y_max_range)
|
68 |
|
69 |
+
z_min_slider = gr.Slider(minimum=z_min_range, maximum=z_max_range, step=0.01, label="Z Min", value=z_min_range)
|
70 |
+
z_max_slider = gr.Slider(minimum=z_min_range, maximum=z_max_range, step=0.01, label="Z Max", value=z_max_range)
|
71 |
|
72 |
# Toggle visibility of custom controls
|
73 |
def toggle_custom_controls(predefined_section):
|