Spaces:
Running on Zero
Running on Zero
Make settings layout static
Browse files
app.py
CHANGED
|
@@ -418,25 +418,24 @@ with gr.Blocks(
|
|
| 418 |
type="filepath",
|
| 419 |
)
|
| 420 |
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
)
|
| 440 |
|
| 441 |
run_button = gr.Button("検出を実行", variant="primary")
|
| 442 |
|
|
|
|
| 418 |
type="filepath",
|
| 419 |
)
|
| 420 |
|
| 421 |
+
gr.Markdown("**詳細設定**")
|
| 422 |
+
score_thresh = gr.Slider(
|
| 423 |
+
minimum=0.0,
|
| 424 |
+
maximum=1.0,
|
| 425 |
+
value=0.7,
|
| 426 |
+
step=0.05,
|
| 427 |
+
label="スコア閾値",
|
| 428 |
+
)
|
| 429 |
+
with gr.Row(equal_height=False, elem_classes=["class-selector-header"]):
|
| 430 |
+
gr.HTML("<div class='class-selector-title'>対象クラス</div>")
|
| 431 |
+
select_all_classes_button = gr.Button("全選択", size="sm")
|
| 432 |
+
selected_classes = gr.CheckboxGroup(
|
| 433 |
+
choices=class_names,
|
| 434 |
+
value=["door1"], # デフォルトでdoor1のみ選択
|
| 435 |
+
show_label=False,
|
| 436 |
+
container=False,
|
| 437 |
+
elem_classes=["class-selector-options"],
|
| 438 |
+
)
|
|
|
|
| 439 |
|
| 440 |
run_button = gr.Button("検出を実行", variant="primary")
|
| 441 |
|