Instructions to use lesliejd/jt-whisper with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lesliejd/jt-whisper with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="lesliejd/jt-whisper")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("lesliejd/jt-whisper") model = AutoModelForSpeechSeq2Seq.from_pretrained("lesliejd/jt-whisper", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download test.py from lesliejd/jt-whisper: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/lesliejd/jt-whisper/resolve/main/test.py
- Command line
-
hf download hf://lesliejd/jt-whisper/test.py
-
curl -L -o test.py https://huggingface.co/lesliejd/jt-whisper/resolve/main/test.py
391 Bytes
| from handler import EndpointHandler | |
| from datasets import load_dataset | |
| # init handler | |
| my_handler = EndpointHandler(path=".") | |
| # print(type(sample["data"])) | |
| prediction = my_handler({"inputs": "/Users/lesliejones-dove/Desktop/projects/Whisper/whisperx/whisperCustomHandler/Saffored_short.wav"}) | |
| # /Users/lesliejones-dove/Desktop/projects/Whisper/whisperx/whisperCustomHandler | |
| print(prediction) |