How to use WayneLinn/Lab2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="WayneLinn/Lab2")
# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("WayneLinn/Lab2") model = AutoModelForSpeechSeq2Seq.from_pretrained("WayneLinn/Lab2")
What is a pickle import?
How to fix it?