Skip to content

Commit 3760e1e

Browse files
Update optimum/intel/pipelines/pipeline_base.py
Co-authored-by: Ella Charlaix <80481427+echarlaix@users.noreply.github.com>
1 parent cfbcf9f commit 3760e1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

optimum/intel/pipelines/pipeline_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ def pipeline(
286286
model, task, supported_tasks, model_kwargs, hub_kwargs, **kwargs
287287
)
288288

289-
if load_tokenizer and model_id and tokenizer is None:
289+
if load_tokenizer and tokenizer is None:
290290
tokenizer = AutoTokenizer.from_pretrained(model_id, **hub_kwargs, **model_kwargs)
291-
if load_feature_extractor and model_id and feature_extractor is None:
291+
if load_feature_extractor and feature_extractor is None:
292292
feature_extractor = AutoFeatureExtractor.from_pretrained(model_id, **hub_kwargs, **model_kwargs)
293293

294294

0 commit comments

Comments
 (0)