Update app.py
Browse files
app.py
CHANGED
|
@@ -540,45 +540,26 @@ def execute_unified_search(base_std, base_ver, base_cat, comp_std, comp_ver, com
|
|
| 540 |
with gr.Blocks() as demo:
|
| 541 |
gr.Markdown("# 📜 Regulation Viewer")
|
| 542 |
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
# 기준 법규
|
| 546 |
with gr.Accordion("📌 기준 법규", open=True):
|
| 547 |
with gr.Column():
|
| 548 |
-
|
| 549 |
-
# 헤더 행 추가
|
| 550 |
-
with gr.Row():
|
| 551 |
-
gr.Markdown("#### 기준 법규")
|
| 552 |
-
base_reset_btn = gr.Button("↺", size="sm", min_width=50)
|
| 553 |
-
|
| 554 |
base_standard = gr.Dropdown(label="Standard")
|
| 555 |
base_version = gr.Dropdown(label="Version")
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
|
|
|
|
|
|
| 560 |
with gr.Accordion("🔄 비교 법규", open=False):
|
| 561 |
with gr.Column():
|
| 562 |
-
|
| 563 |
-
# 헤더 행 추가
|
| 564 |
-
with gr.Row():
|
| 565 |
-
gr.Markdown("#### 비교 법규")
|
| 566 |
-
comp_reset_btn = gr.Button("↺", size="sm", min_width=50)
|
| 567 |
-
|
| 568 |
comp_standard = gr.Dropdown(label="Standard", choices=[])
|
| 569 |
comp_version = gr.Dropdown(label="Version", choices=[])
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
diff_filter_cb = gr.Checkbox(
|
| 576 |
-
label="💡 변경된 내용만 보기",
|
| 577 |
-
value=False,
|
| 578 |
-
elem_id="diff_cb_item",
|
| 579 |
-
container=False,
|
| 580 |
-
scale=1
|
| 581 |
-
)
|
| 582 |
|
| 583 |
output_df = gr.Dataframe(wrap=True, interactive=False, datatype="html", max_height=800)
|
| 584 |
|
|
|
|
| 540 |
with gr.Blocks() as demo:
|
| 541 |
gr.Markdown("# 📜 Regulation Viewer")
|
| 542 |
|
| 543 |
+
with gr.Row():
|
|
|
|
|
|
|
| 544 |
with gr.Accordion("📌 기준 법규", open=True):
|
| 545 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 546 |
base_standard = gr.Dropdown(label="Standard")
|
| 547 |
base_version = gr.Dropdown(label="Version")
|
| 548 |
+
|
| 549 |
+
# ⬇️ [최적의 위치] Category와 초기화 버튼을 한 줄(Row)로 묶어버립니다!
|
| 550 |
+
with gr.Row():
|
| 551 |
+
base_category = gr.Dropdown(label="Category", scale=4) # 4의 비율로 넓게
|
| 552 |
+
base_reset_btn = gr.Button("↺ 초기화", scale=1) # 1의 비율로 좁게 (오른쪽에 착착!)
|
| 553 |
+
|
| 554 |
with gr.Accordion("🔄 비교 법규", open=False):
|
| 555 |
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 556 |
comp_standard = gr.Dropdown(label="Standard", choices=[])
|
| 557 |
comp_version = gr.Dropdown(label="Version", choices=[])
|
| 558 |
+
|
| 559 |
+
# ⬇️ [최적의 위치] 여기도 동일하게 적용!
|
| 560 |
+
with gr.Row():
|
| 561 |
+
comp_category = gr.Dropdown(label="Category", choices=[], scale=4)
|
| 562 |
+
comp_reset_btn = gr.Button("↺ 초기화", scale=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 563 |
|
| 564 |
output_df = gr.Dataframe(wrap=True, interactive=False, datatype="html", max_height=800)
|
| 565 |
|