update model card README.md 1eb0871
Derek Thomas commited on
How to use derek-thomas/hubert-base-ls960-finetuned-gtzan-efficient with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="derek-thomas/hubert-base-ls960-finetuned-gtzan-efficient") # Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("derek-thomas/hubert-base-ls960-finetuned-gtzan-efficient")
model = AutoModelForAudioClassification.from_pretrained("derek-thomas/hubert-base-ls960-finetuned-gtzan-efficient", device_map="auto")