Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
015443f4
Unverified
Commit
015443f4
authored
Jan 25, 2023
by
Younes Belkada
Committed by
GitHub
Jan 25, 2023
Browse files
[Doctest] Fix `Blenderbot` doctest (#21297)
fix blenderbot doctest - add correct expected value
parent
cc714d74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/blenderbot/modeling_blenderbot.py
src/transformers/models/blenderbot/modeling_blenderbot.py
+1
-1
No files found.
src/transformers/models/blenderbot/modeling_blenderbot.py
View file @
015443f4
...
...
@@ -544,7 +544,7 @@ BLENDERBOT_GENERATION_EXAMPLE = r"""
>>> inputs = tokenizer([NEXT_UTTERANCE], return_tensors="pt")
>>> next_reply_ids = model.generate(**inputs)
>>> print("Bot: ", tokenizer.batch_decode(next_reply_ids, skip_special_tokens=True)[0])
Bot:
Tha
t's
t
oo
bad. Have you tried encouraging them
to change their eating habits
?
Bot:
I see. Well, i
t's
g
oo
d that they're trying
to change their eating habits
.
```
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment