Spaces:
Sleeping
Sleeping
Varun Wadhwa
commited on
Logs
Browse files
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:
|