leduckhai/VietMed
Viewer โข Updated โข 9.12k โข 1.42k โข 28
How to use minhquan24/PhoWhisper_vietmed_06_06_24 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="minhquan24/PhoWhisper_vietmed_06_06_24") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
processor = AutoProcessor.from_pretrained("minhquan24/PhoWhisper_vietmed_06_06_24")
model = AutoModelForSpeechSeq2Seq.from_pretrained("minhquan24/PhoWhisper_vietmed_06_06_24", device_map="auto")