Tristan Thrush commited on
Commit
999de47
1 Parent(s): cc9524e

make labels work with autoeval

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ with demo:
63
  toggle_example_submit = gr.update(visible=not done)
64
  new_state_md = f"State: {state['cnt']}/{total_cnt} ({state['cnt_fooled']} fooled)"
65
 
66
- state["data"].append({"cnt": state["cnt"], "text": txt, "target": tgt, "model_pred": pred["label"], "fooled": fooled})
67
 
68
  query = parse_qs(dummy[1:])
69
  if "assignmentId" in query and query["assignmentId"][0] != "ASSIGNMENT_ID_NOT_AVAILABLE":
 
63
  toggle_example_submit = gr.update(visible=not done)
64
  new_state_md = f"State: {state['cnt']}/{total_cnt} ({state['cnt_fooled']} fooled)"
65
 
66
+ state["data"].append({"cnt": state["cnt"], "text": txt, "target": tgt.lower(), "model_pred": pred["label"].lower(), "fooled": fooled})
67
 
68
  query = parse_qs(dummy[1:])
69
  if "assignmentId" in query and query["assignmentId"][0] != "ASSIGNMENT_ID_NOT_AVAILABLE":