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
|
Download README.md from Arsalan07/whisper-api: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/Arsalan07/whisper-api/resolve/main/README.md
- Command line
-
hf download hf://Arsalan07/whisper-api/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/Arsalan07/whisper-api/resolve/main/README.md
1.11 kB
metadata
library_name: transformers
language:
- en
pipeline_tag: automatic-speech-recognition
tags:
- audio
- asr
- whisper
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"])