Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}
|
| 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}
|
| 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 |
|