Unverified Commit ff887035 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Update 2 doctest expected values for torch 2.0.0 (#22148)



update values
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent cdddfbff
...@@ -247,7 +247,7 @@ For example, if you use this [invoice image](https://huggingface.co/spaces/impir ...@@ -247,7 +247,7 @@ For example, if you use this [invoice image](https://huggingface.co/spaces/impir
... image="https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png", ... image="https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png",
... question="What is the invoice number?", ... question="What is the invoice number?",
... ) ... )
[{'score': 0.42514941096305847, 'answer': 'us-001', 'start': 16, 'end': 16}] [{'score': 0.42515, 'answer': 'us-001', 'start': 16, 'end': 16}]
``` ```
<Tip> <Tip>
......
...@@ -2401,7 +2401,7 @@ class GenerationMixin: ...@@ -2401,7 +2401,7 @@ class GenerationMixin:
... ) ... )
>>> tokenizer.batch_decode(outputs, skip_special_tokens=True) >>> tokenizer.batch_decode(outputs, skip_special_tokens=True)
['Today is a beautiful day, and a wonderful day.\n\nI was lucky enough to meet the'] ['Today is a beautiful day, and we must do everything possible to make it a day of celebration.']
```""" ```"""
# init values # init values
logits_processor = logits_processor if logits_processor is not None else LogitsProcessorList() logits_processor = logits_processor if logits_processor is not None else LogitsProcessorList()
......
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