Skip to content

Commit

Permalink
fix BART Summarization example in doc (huggingface#10582)
Browse files Browse the repository at this point in the history
  • Loading branch information
orena1 authored and Iwontbecreative committed Jul 15, 2021
1 parent c69ac87 commit b51acdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/models/bart/modeling_bart.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ def __init_subclass__(self):
>>> from transformers import BartTokenizer, BartForConditionalGeneration, BartConfig
>>> model = BartForConditionalGeneration.from_pretrained('facebook/bart-large')
>>> tokenizer = BartTokenizer.from_pretrained('facebook/bart-large')
>>> model = BartForConditionalGeneration.from_pretrained('facebook/bart-large-cnn')
>>> tokenizer = BartTokenizer.from_pretrained('facebook/bart-large-cnn')
>>> ARTICLE_TO_SUMMARIZE = "My friends are cool but they eat too many carbs."
>>> inputs = tokenizer([ARTICLE_TO_SUMMARIZE], max_length=1024, return_tensors='pt')
Expand Down

0 comments on commit b51acdf

Please sign in to comment.