Update README.md
Browse files
README.md
CHANGED
|
@@ -41,7 +41,7 @@ The provided OpenVINO™ IR model is compatible with:
|
|
| 41 |
1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
|
| 42 |
|
| 43 |
```
|
| 44 |
-
pip install optimum[openvino]
|
| 45 |
```
|
| 46 |
|
| 47 |
2. Run model inference:
|
|
@@ -73,7 +73,7 @@ print(text)
|
|
| 73 |
|
| 74 |
1. Install packages required for using OpenVINO GenAI.
|
| 75 |
```
|
| 76 |
-
pip install huggingface_hub
|
| 77 |
pip install -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly openvino openvino-tokenizers openvino-genai
|
| 78 |
```
|
| 79 |
|
|
@@ -98,7 +98,7 @@ import datasets
|
|
| 98 |
device = "CPU"
|
| 99 |
pipe = ov_genai.WhisperPipeline(model_path, device)
|
| 100 |
|
| 101 |
-
dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True)
|
| 102 |
sample = dataset[0]["audio"]["array"]
|
| 103 |
print(pipe.generate(sample))
|
| 104 |
```
|
|
|
|
| 41 |
1. Install packages required for using [Optimum Intel](https://huggingface.co/docs/optimum/intel/index) integration with the OpenVINO backend:
|
| 42 |
|
| 43 |
```
|
| 44 |
+
pip install optimum[openvino] "datasets<4" librosa soundfile --extra-index-url https://download.pytorch.org/whl/cpu
|
| 45 |
```
|
| 46 |
|
| 47 |
2. Run model inference:
|
|
|
|
| 73 |
|
| 74 |
1. Install packages required for using OpenVINO GenAI.
|
| 75 |
```
|
| 76 |
+
pip install huggingface_hub "datasets<4" librosa soundfile
|
| 77 |
pip install -U --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly openvino openvino-tokenizers openvino-genai
|
| 78 |
```
|
| 79 |
|
|
|
|
| 98 |
device = "CPU"
|
| 99 |
pipe = ov_genai.WhisperPipeline(model_path, device)
|
| 100 |
|
| 101 |
+
dataset = datasets.load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation", trust_remote_code=True)
|
| 102 |
sample = dataset[0]["audio"]["array"]
|
| 103 |
print(pipe.generate(sample))
|
| 104 |
```
|