John Graham Reynolds commited on
Commit
bb107ac
·
1 Parent(s): dbc5be0

updating pandas method for labels

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -39,9 +39,8 @@ def evaluation(predictions, metrics) -> str:
39
 
40
  combined = evaluate.combine(combined_list)
41
 
42
- df = predictions.get_dataframe()
43
- predicted = df["Predicted Label"].to_list()
44
- references = df["Actual Label"].to_list()
45
 
46
  combined.add_batch(prediction=predicted, reference=references)
47
  outputs = combined.compute()
 
39
 
40
  combined = evaluate.combine(combined_list)
41
 
42
+ predicted = predictions["Predicted Label"].to_list()
43
+ references = predictions["Actual Label"].to_list()
 
44
 
45
  combined.add_batch(prediction=predicted, reference=references)
46
  outputs = combined.compute()