helenai commited on
Commit
820e8b7
1 Parent(s): 5925520

commit files to HF hub

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. inference.py +1 -1
README.md CHANGED
@@ -12,7 +12,7 @@ This is the [MIT/ast-finetuned-speech-commands-v2](https://huggingface.co/MIT/as
12
  An example of how to do inference on this model:
13
  ```python
14
  from optimum.intel.openvino import OVModelForAudioClassification
15
- from transformers import AutoTokenizer, pipeline
16
 
17
  # model_id should be set to either a local directory or a model available on the HuggingFace hub.
18
  model_id = "helenai/MIT-ast-finetuned-speech-commands-v2-ov"
 
12
  An example of how to do inference on this model:
13
  ```python
14
  from optimum.intel.openvino import OVModelForAudioClassification
15
+ from transformers import AutoFeatureExtractor, pipeline
16
 
17
  # model_id should be set to either a local directory or a model available on the HuggingFace hub.
18
  model_id = "helenai/MIT-ast-finetuned-speech-commands-v2-ov"
inference.py CHANGED
@@ -1,5 +1,5 @@
1
  from optimum.intel.openvino import OVModelForAudioClassification
2
- from transformers import AutoTokenizer, pipeline
3
 
4
  # model_id should be set to either a local directory or a model available on the HuggingFace hub.
5
  model_id = "helenai/MIT-ast-finetuned-speech-commands-v2-ov"
 
1
  from optimum.intel.openvino import OVModelForAudioClassification
2
+ from transformers import AutoFeatureExtractor, pipeline
3
 
4
  # model_id should be set to either a local directory or a model available on the HuggingFace hub.
5
  model_id = "helenai/MIT-ast-finetuned-speech-commands-v2-ov"