From 843d39708ff733e3bd9a438d18997899ba57b242 Mon Sep 17 00:00:00 2001 From: Ekaterina Aidova Date: Thu, 12 Oct 2023 11:57:44 +0400 Subject: [PATCH] Apply suggestions from code review --- optimum/intel/openvino/modeling_seq2seq.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optimum/intel/openvino/modeling_seq2seq.py b/optimum/intel/openvino/modeling_seq2seq.py index d3d8f6a869..15493f7000 100644 --- a/optimum/intel/openvino/modeling_seq2seq.py +++ b/optimum/intel/openvino/modeling_seq2seq.py @@ -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)