Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
510 |
-
|
511 |
-
with gr.
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
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")
|