davda54 commited on
Commit
d6ccd16
·
verified ·
1 Parent(s): 8bd9b43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -440,7 +440,7 @@ def login(user_id: str) -> Tuple:
440
  gr.update(value=sample["prompt"]), # prompt
441
  gr.update(value=sample["response_a"]), # response_a
442
  gr.update(value=sample["response_b"]), # response_b
443
- gr.update(value=f"Progress: {current}/{total}{model_info}") # progress
444
  )
445
 
446
  def annotate(choice: str, user_id: str) -> Tuple:
@@ -493,7 +493,7 @@ def annotate(choice: str, user_id: str) -> Tuple:
493
  gr.update(value=next_sample["prompt"]), # prompt
494
  gr.update(value=next_sample["response_a"]), # response_a
495
  gr.update(value=next_sample["response_b"]), # response_b
496
- gr.update(value=f"Progress: {current}/{total}{model_info}"), # progress
497
  gr.update(value="Annotation saved!", visible=True) # status
498
  )
499
 
 
440
  gr.update(value=sample["prompt"]), # prompt
441
  gr.update(value=sample["response_a"]), # response_a
442
  gr.update(value=sample["response_b"]), # response_b
443
+ gr.update(value=f"Progress: {current}/{total}") # progress
444
  )
445
 
446
  def annotate(choice: str, user_id: str) -> Tuple:
 
493
  gr.update(value=next_sample["prompt"]), # prompt
494
  gr.update(value=next_sample["response_a"]), # response_a
495
  gr.update(value=next_sample["response_b"]), # response_b
496
+ gr.update(value=f"Progress: {current}/{total}"), # progress
497
  gr.update(value="Annotation saved!", visible=True) # status
498
  )
499