Fix some pipeline tests (#21401)

* fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2023-02-02 19:03:31 +01:00
committed by GitHub
parent 145bf41c13
commit a6d8a149a8
20 changed files with 69 additions and 37 deletions

View File

@@ -39,7 +39,7 @@ class VideoClassificationPipelineTests(unittest.TestCase, metaclass=PipelineTest
example_video_filepath = hf_hub_download(
repo_id="nateraw/video-demo", filename="archery.mp4", repo_type="dataset"
)
video_classifier = VideoClassificationPipeline(model=model, feature_extractor=processor, top_k=2)
video_classifier = VideoClassificationPipeline(model=model, image_processor=processor, top_k=2)
examples = [
example_video_filepath,
"https://huggingface.co/datasets/nateraw/video-demo/resolve/main/archery.mp4",