Update README.md
#5
by
ttin2133 - opened
README.md
CHANGED
|
@@ -38,7 +38,7 @@ Inference can be done using the following code (for inference code and more deta
|
|
| 38 |
```python
|
| 39 |
import torch
|
| 40 |
from transformers import WhisperProcessor, WhisperForConditionalGeneration
|
| 41 |
-
|
| 42 |
model_path = "aiola/whisper-ner-v1"
|
| 43 |
audio_file_path = "path/to/audio/file"
|
| 44 |
prompt = "person, company, location" # comma separated entity tags
|
|
|
|
| 38 |
```python
|
| 39 |
import torch
|
| 40 |
from transformers import WhisperProcessor, WhisperForConditionalGeneration
|
| 41 |
+
import torchaudio
|
| 42 |
model_path = "aiola/whisper-ner-v1"
|
| 43 |
audio_file_path = "path/to/audio/file"
|
| 44 |
prompt = "person, company, location" # comma separated entity tags
|