Update pipeline.py
Browse files- pipeline.py +3 -3
pipeline.py
CHANGED
@@ -57,11 +57,11 @@ class PreTrainedPipeline():
|
|
57 |
mask_codes[f"mask_{cls}"] = mask
|
58 |
|
59 |
|
60 |
-
|
61 |
|
62 |
labels.append({
|
63 |
-
"label": f"LABEL_{
|
64 |
-
"mask": mask_codes[f"mask_{
|
65 |
"score": 1.0,
|
66 |
})
|
67 |
return labels
|
|
|
57 |
mask_codes[f"mask_{cls}"] = mask
|
58 |
|
59 |
|
60 |
+
|
61 |
|
62 |
labels.append({
|
63 |
+
"label": f"LABEL_{cls}",
|
64 |
+
"mask": mask_codes[f"mask_{cls}"],
|
65 |
"score": 1.0,
|
66 |
})
|
67 |
return labels
|