How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("automatic-speech-recognition", model="codenamewei/speech-to-text")
# Load model directly
from transformers import AutoProcessor, AutoModelForCTC

processor = AutoProcessor.from_pretrained("codenamewei/speech-to-text")
model = AutoModelForCTC.from_pretrained("codenamewei/speech-to-text")
Quick Links