Varun Wadhwa commited on
Commit
7b9d13e
·
unverified ·
1 Parent(s): 663c988
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def evaluate_model(model, dataloader, device):
126
  for batch in dataloader:
127
  input_ids = batch['input_ids'].to(device)
128
  attention_mask = batch['attention_mask'].to(device)
129
- labels = batch['labels'].to(device)
130
  x = len(labels[0])
131
  print(labels[0])
132
  for l in labels:
 
126
  for batch in dataloader:
127
  input_ids = batch['input_ids'].to(device)
128
  attention_mask = batch['attention_mask'].to(device)
129
+ labels = batch['labels'].to(device).cpu().numpy()
130
  x = len(labels[0])
131
  print(labels[0])
132
  for l in labels: