Joshua Lochner commited on
Commit
fcc71d5
1 Parent(s): 9c77c04

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -1
pipeline.py CHANGED
@@ -310,7 +310,7 @@ class PreTrainedPipeline():
310
  'end': 927.581,
311
  'category': 'sponsor'
312
  }]
313
- segment = self.pipeline2(data)
314
  # END TEMP
315
 
316
 
@@ -367,6 +367,7 @@ class PreTrainedPipeline():
367
 
368
  # widget needs the below format, for each class we return label and mask string
369
  labels.append({
 
370
  "label": f"LABEL_{cls}",
371
  "mask": mask_codes[f"mask_{cls}"],
372
  "score": 1.0,
 
310
  'end': 927.581,
311
  'category': 'sponsor'
312
  }]
313
+ segment = data #self.pipeline2(data)
314
  # END TEMP
315
 
316
 
 
367
 
368
  # widget needs the below format, for each class we return label and mask string
369
  labels.append({
370
+ 'inputs': inputs,
371
  "label": f"LABEL_{cls}",
372
  "mask": mask_codes[f"mask_{cls}"],
373
  "score": 1.0,