Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -453,7 +453,7 @@ def annotate(choice: str, user_id: str) -> Tuple:
|
|
| 453 |
gr.update(value=next_sample["prompt"]), # prompt
|
| 454 |
gr.update(value=next_sample["response_a"]), # response_a
|
| 455 |
gr.update(value=next_sample["response_b"]), # response_b
|
| 456 |
-
gr.update(value=f"Progress: {current}/{total} | Comparing: {sample.get('model_a', 'A')} vs {sample.get('model_b', 'B')}") # progress
|
| 457 |
# gr.update(value=f"Progress: {current}/{total}"), # progress
|
| 458 |
gr.update(value="Annotation saved!", visible=True) # status
|
| 459 |
)
|
|
|
|
| 453 |
gr.update(value=next_sample["prompt"]), # prompt
|
| 454 |
gr.update(value=next_sample["response_a"]), # response_a
|
| 455 |
gr.update(value=next_sample["response_b"]), # response_b
|
| 456 |
+
gr.update(value=f"Progress: {current}/{total} | Comparing: {sample.get('model_a', 'A')} vs {sample.get('model_b', 'B')}"), # progress
|
| 457 |
# gr.update(value=f"Progress: {current}/{total}"), # progress
|
| 458 |
gr.update(value="Annotation saved!", visible=True) # status
|
| 459 |
)
|