Update README.md
Browse files
README.md
CHANGED
@@ -52,7 +52,7 @@ print(text)
|
|
52 |
1. Install packages required for using OpenVINO GenAI.
|
53 |
```
|
54 |
pip install huggingface_hub
|
55 |
-
pip install -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly openvino-tokenizers openvino
|
56 |
```
|
57 |
|
58 |
2. Download model from HuggingFace Hub
|
@@ -74,7 +74,7 @@ import openvino_genai as ov_genai
|
|
74 |
import datasets
|
75 |
|
76 |
device = "CPU"
|
77 |
-
pipe = ov_genai.
|
78 |
|
79 |
dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True)
|
80 |
sample = dataset[0]["audio]["array"]
|
|
|
52 |
1. Install packages required for using OpenVINO GenAI.
|
53 |
```
|
54 |
pip install huggingface_hub
|
55 |
+
pip install -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly openvino openvino-tokenizers openvino-genai
|
56 |
```
|
57 |
|
58 |
2. Download model from HuggingFace Hub
|
|
|
74 |
import datasets
|
75 |
|
76 |
device = "CPU"
|
77 |
+
pipe = ov_genai.WhisperPipeline(model_path, device)
|
78 |
|
79 |
dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True)
|
80 |
sample = dataset[0]["audio]["array"]
|