Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -18,7 +18,7 @@ class EndpointHandler():
|
|
18 |
yield i
|
19 |
|
20 |
labels = []
|
21 |
-
for out in pipeline(iterator(), padding=True, truncation=True, max_length=253):
|
22 |
labels.append(int(out["label"][-1]))
|
23 |
|
24 |
return {
|
|
|
18 |
yield i
|
19 |
|
20 |
labels = []
|
21 |
+
for out in self.pipeline(iterator(), padding=True, truncation=True, max_length=253):
|
22 |
labels.append(int(out["label"][-1]))
|
23 |
|
24 |
return {
|