Unverified Commit 015443f4 authored by Younes Belkada's avatar Younes Belkada Committed by GitHub
Browse files

[Doctest] Fix `Blenderbot` doctest (#21297)

fix blenderbot doctest

- add correct expected value
parent cc714d74
...@@ -544,7 +544,7 @@ BLENDERBOT_GENERATION_EXAMPLE = r""" ...@@ -544,7 +544,7 @@ BLENDERBOT_GENERATION_EXAMPLE = r"""
>>> inputs = tokenizer([NEXT_UTTERANCE], return_tensors="pt") >>> inputs = tokenizer([NEXT_UTTERANCE], return_tensors="pt")
>>> next_reply_ids = model.generate(**inputs) >>> next_reply_ids = model.generate(**inputs)
>>> print("Bot: ", tokenizer.batch_decode(next_reply_ids, skip_special_tokens=True)[0]) >>> print("Bot: ", tokenizer.batch_decode(next_reply_ids, skip_special_tokens=True)[0])
Bot: That's too bad. Have you tried encouraging them to change their eating habits? Bot: I see. Well, it's good that they're trying to change their eating habits.
``` ```
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment