QIDNLF commited on
Commit
11cdd15
·
verified ·
1 Parent(s): 44dc7a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -5
app.py CHANGED
@@ -541,24 +541,44 @@ 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_reset_btn = gr.Button("↺ 기준 법규 초기화", size="sm")
 
 
 
 
 
547
  base_standard = gr.Dropdown(label="Standard")
548
  base_version = gr.Dropdown(label="Version")
549
  base_category = gr.Dropdown(label="Category")
550
-
 
 
551
  with gr.Accordion("🔄 비교 법규", open=False):
552
  with gr.Column():
553
- comp_reset_btn = gr.Button("↺ 비교 법규 초기화", size="sm")
 
 
 
 
 
554
  comp_standard = gr.Dropdown(label="Standard", choices=[])
555
  comp_version = gr.Dropdown(label="Version", choices=[])
556
  comp_category = gr.Dropdown(label="Category", choices=[])
557
 
558
- # 💡 [핵심] 조회 버튼과 체크박스를 딱 1번만, 한 줄(Row)로 깔끔하게 배치!
559
  with gr.Row(elem_id="search_row"):
560
  search_btn = gr.Button("🔍 조회", variant="primary", scale=10)
561
- diff_filter_cb = gr.Checkbox(label="💡 변경된 내용만 보기", value=False, elem_id="diff_cb_item", container=False, scale=1)
 
 
 
 
 
 
562
 
563
  output_df = gr.Dataframe(wrap=True, interactive=False, datatype="html", max_height=800)
564
 
@@ -594,6 +614,9 @@ with gr.Blocks() as demo:
594
  # 5. Application Styling (CSS)
595
  # ==========================================
596
  css = """
 
 
 
597
  table {
598
  table-layout: auto !important;
599
  width: max-content !important;
 
541
  gr.Markdown("# 📜 Regulation Viewer")
542
 
543
  with gr.Row():
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
  base_category = gr.Dropdown(label="Category")
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
  comp_category = gr.Dropdown(label="Category", choices=[])
571
 
572
+
573
  with gr.Row(elem_id="search_row"):
574
  search_btn = gr.Button("🔍 조회", variant="primary", scale=10)
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
 
 
614
  # 5. Application Styling (CSS)
615
  # ==========================================
616
  css = """
617
+ .reset-row{
618
+ align-items:center;
619
+ }
620
  table {
621
  table-layout: auto !important;
622
  width: max-content !important;