tung commited on
Commit
c231f99
·
1 Parent(s): 284fa00

polish the texts

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -272,7 +272,7 @@ def start_or_resume(
272
  progress,
273
  "Please enter a non-empty identifier to begin.",
274
  )
275
- if proficiency not in {"expert", "basic", "non-fluent"}:
276
  return (
277
  gr.update(value=user_id, visible=True),
278
  gr.update(visible=False),
@@ -481,7 +481,8 @@ Enter your identifier below to start or resume. Each sample is a pair of two sen
481
  answer1_md = gr.Markdown(label="Sentence A", elem_classes=["answerbox"])
482
  answer2_md = gr.Markdown(label="Sentence B", elem_classes=["answerbox"])
483
  choice_radio = gr.Radio(
484
- ["Sentence 1", "Sentence 2"], label="Which sentence do you prefer?"
 
485
  )
486
  submit_btn = gr.Button("Submit Preference", visible=False)
487
 
 
272
  progress,
273
  "Please enter a non-empty identifier to begin.",
274
  )
275
+ if proficiency not in {"expert", "fluent", "basic"}:
276
  return (
277
  gr.update(value=user_id, visible=True),
278
  gr.update(visible=False),
 
481
  answer1_md = gr.Markdown(label="Sentence A", elem_classes=["answerbox"])
482
  answer2_md = gr.Markdown(label="Sentence B", elem_classes=["answerbox"])
483
  choice_radio = gr.Radio(
484
+ ["Sentence 1", "Sentence 2"],
485
+ label="Which sentence is more grammatically correct?",
486
  )
487
  submit_btn = gr.Button("Submit Preference", visible=False)
488