Joshua Lochner commited on
Commit
34790a9
1 Parent(s): 8cb1232

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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
- # for result in results:
301
- # result['label_text'] = CATEGORIES[result['label']]
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