Update README.md
Browse files
README.md
CHANGED
@@ -64,7 +64,7 @@ print(text)
|
|
64 |
1. Install packages required for using OpenVINO GenAI.
|
65 |
```
|
66 |
pip install huggingface_hub
|
67 |
-
pip install -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly openvino-tokenizers openvino
|
68 |
```
|
69 |
|
70 |
2. Download model from HuggingFace Hub
|
@@ -86,7 +86,7 @@ import openvino_genai as ov_genai
|
|
86 |
import datasets
|
87 |
|
88 |
device = "CPU"
|
89 |
-
pipe = ov_genai.
|
90 |
|
91 |
dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True)
|
92 |
sample = dataset[0]["audio]["array"]
|
|
|
64 |
1. Install packages required for using OpenVINO GenAI.
|
65 |
```
|
66 |
pip install huggingface_hub
|
67 |
+
pip install -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly openvino openvino-tokenizers openvino-genai
|
68 |
```
|
69 |
|
70 |
2. Download model from HuggingFace Hub
|
|
|
86 |
import datasets
|
87 |
|
88 |
device = "CPU"
|
89 |
+
pipe = ov_genai.WhisperPipeline(model_path, device)
|
90 |
|
91 |
dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True)
|
92 |
sample = dataset[0]["audio]["array"]
|