Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Oct 12, 2023
1 parent 68e727c commit 843d397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/intel/openvino/modeling_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@
```python
>>> from transformers import {processor_class}
>>> from optimum.onnxruntime import {model_class}
>>> from optimum.intel import {model_class}
>>> from PIL import Image
>>> import requests
>>> processor = {processor_class}.from_pretrained("{checkpoint}")
>>> model = {model_class}.from_pretrained("{checkpoint}", export=True, use_io_binding=True)
>>> model = {model_class}.from_pretrained("{checkpoint}", export=True)
>>> url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg"
>>> image = Image.open(requests.get(url, stream=True).raw)
Expand Down

0 comments on commit 843d397

Please sign in to comment.