Spaces:
Runtime error
Runtime error
pietrocagnasso
commited on
Commit
•
8f46272
1
Parent(s):
c0cce92
Update Highlighter.py
Browse files- Highlighter.py +1 -1
Highlighter.py
CHANGED
@@ -62,7 +62,7 @@ class Highlighter():
|
|
62 |
dl = DataLoader(ds, batch_size=4)
|
63 |
|
64 |
res = []
|
65 |
-
for data in
|
66 |
ids, am = data["input_ids"], data["attention_mask"]
|
67 |
|
68 |
out = self.model(input_ids=ids.to(self.device), attention_mask=am.to(self.device))
|
|
|
62 |
dl = DataLoader(ds, batch_size=4)
|
63 |
|
64 |
res = []
|
65 |
+
for data in dl:
|
66 |
ids, am = data["input_ids"], data["attention_mask"]
|
67 |
|
68 |
out = self.model(input_ids=ids.to(self.device), attention_mask=am.to(self.device))
|