Joshua Lochner
commited on
Commit
•
34790a9
1
Parent(s):
8cb1232
Update pipeline.py
Browse files- pipeline.py +2 -2
pipeline.py
CHANGED
@@ -297,8 +297,8 @@ class SponsorBlockClassificationPipeline(TextClassificationPipeline):
|
|
297 |
|
298 |
results = super().postprocess(model_outputs, function_to_apply, return_all_scores)
|
299 |
|
300 |
-
|
301 |
-
|
302 |
|
303 |
return results # {**data['video'], 'result': results}
|
304 |
|
|
|
297 |
|
298 |
results = super().postprocess(model_outputs, function_to_apply, return_all_scores)
|
299 |
|
300 |
+
for result in results:
|
301 |
+
result['label_text'] = CATEGORIES[result['label']]
|
302 |
|
303 |
return results # {**data['video'], 'result': results}
|
304 |
|