huggingface / huggingface/course

summarization removed from pipeline

Open
#1,255 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
4.2k
Forks
1.4k
Avg merge
13m
Merged PRs (30d)
1

Description

In the "transformers, what can they do?" section of the course, the following code no longer compiles:

from transformers import pipeline

summarizer = pipeline("summarization")
summarizer(
"""
America has changed ......
"""
)

The following error is produced:
KeyError: "Unknown task summarization, available tasks are ['any-to-any', ......]

It appears that the summarization task has been removed from the pipeline.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.