350016z commited on
Commit
feae7c6
·
verified ·
1 Parent(s): e0eaa15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -261,8 +261,8 @@ with gr.Blocks(css="""
261
  too_many_errors_button = gr.Button("✖ 過多錯誤", elem_id="too_many_errors_button")
262
  with gr.Column(scale=1):
263
  with gr.Row(equal_height=True):
264
- category = gr.Dropdown(label="錯誤類別", choices=list(categories.keys()), value="No-error")
265
- subcategory = gr.Dropdown(label="子類別", choices=categories["No-error"], value=None)
266
  other = gr.Textbox(label="其他子類別", placeholder="若無法歸類,請填寫其他")
267
  with gr.Row(equal_height=True):
268
  severity = gr.Radio(label="錯誤嚴重程度", choices=["No-error", "Minor", "Major"], value="No-error")
 
261
  too_many_errors_button = gr.Button("✖ 過多錯誤", elem_id="too_many_errors_button")
262
  with gr.Column(scale=1):
263
  with gr.Row(equal_height=True):
264
+ category = gr.Dropdown(label="錯誤類別", choices=list(categories.keys()), value="Accuracy")
265
+ subcategory = gr.Dropdown(label="子類別", choices=categories["Accuracy"], value="Mistranslation")
266
  other = gr.Textbox(label="其他子類別", placeholder="若無法歸類,請填寫其他")
267
  with gr.Row(equal_height=True):
268
  severity = gr.Radio(label="錯誤嚴重程度", choices=["No-error", "Minor", "Major"], value="No-error")