350016z commited on
Commit
4d74553
·
verified ·
1 Parent(s): a8882e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -20
app.py CHANGED
@@ -506,26 +506,25 @@ with gr.Blocks(css="""
506
  # ------------------- 步驟1:錯誤標註 -------------------
507
  # with gr.Group(elem_id="step1_box"):
508
  with gr.Row(equal_height=True):
509
- with gr.Column(scale=1):
510
- error_span = gr.Textbox(label="錯誤區間 (💡可以直接複製「翻譯文本」欄位,並在此貼上)", lines=2, placeholder="請輸入翻譯中文本的錯誤區間 (如無錯誤則不需)")
511
- with gr.Column(scale=1):
512
- with gr.Row(equal_height=True):
513
- category = gr.Dropdown(
514
- label="錯誤類別",
515
- choices=list(categories_display.keys()),
516
- value="正確性"
517
- )
518
- subcategory = gr.Dropdown(
519
- label="子類別",
520
- choices=categories_display["正確性"],
521
- value="誤譯"
522
- )
523
- other = gr.Textbox(label="其他子類別(如選『其他』則填寫)")
524
- severity = gr.Dropdown(
525
- label="嚴重程度",
526
- choices=severity_choices_display,
527
- value="輕微 (Minor)"
528
- )
529
 
530
  with gr.Row():
531
  correct_button = gr.Button("✔ 完全正確", elem_id="correct_button")
 
506
  # ------------------- 步驟1:錯誤標註 -------------------
507
  # with gr.Group(elem_id="step1_box"):
508
  with gr.Row(equal_height=True):
509
+ error_span = gr.Textbox(label="錯誤區間 (💡可以直接複製「翻譯文本」欄位,並在此貼上)", lines=2, placeholder="請輸入翻譯中文本的錯誤區間 (如無錯誤則不需)")
510
+
511
+ # with gr.Row(equal_height=True):
512
+ category = gr.Dropdown(
513
+ label="錯誤類別",
514
+ choices=list(categories_display.keys()),
515
+ value="正確性"
516
+ )
517
+ subcategory = gr.Dropdown(
518
+ label="子類別",
519
+ choices=categories_display["正確性"],
520
+ value="誤譯"
521
+ )
522
+ other = gr.Textbox(label="其他子類別", placeholder="如選『其他』則填寫")
523
+ severity = gr.Dropdown(
524
+ label="嚴重程度",
525
+ choices=severity_choices_display,
526
+ value="輕微 (Minor)"
527
+ )
 
528
 
529
  with gr.Row():
530
  correct_button = gr.Button("✔ 完全正確", elem_id="correct_button")