Instructions to use Arsalan07/whisper-api with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Arsalan07/whisper-api with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="Arsalan07/whisper-api")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("Arsalan07/whisper-api") model = AutoModelForSpeechSeq2Seq.from_pretrained("Arsalan07/whisper-api", device_map="auto") - Notebooks
- Google Colab
- Kaggle
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="Arsalan07/whisper-api")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("Arsalan07/whisper-api")
model = AutoModelForSpeechSeq2Seq.from_pretrained("Arsalan07/whisper-api", device_map="auto")Quick Links
Model Card for Arsalan07/whisper-api
This is a fine-tuned OpenAI Whisper Small model for automatic speech recognition (ASR) in English.
It was fine-tuned with π€ transformers and datasets on custom audio/transcript data.
Model Details
- Base model:
openai/whisper-small - Task: Automatic Speech Recognition (speech β text)
- Language: English (
en) - Files included:
model.safetensors(weights ~967MB)config.json,generation_config.jsonpreprocessor_config.json- tokenizer-related files
How to Use
In Python (pipeline)
# Authenticate with Hugging Face
from huggingface_hub import login
login(token="")
from transformers import pipeline
# Load fine-tuned Whisper model with authentication
pipe = pipeline(
"automatic-speech-recognition",
model="Arsalan07/whisper-api",
)
# Test on an audio file
print(pipe("test.mp3")["text"])
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login