Using without pipe.

#2
by mattmdjaga - opened

How do i use the model without using the pipe? Not sure what's the correct way to open the audio files etc.

When i use

# Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification

processor = AutoProcessor.from_pretrained("sanchit-gandhi/distilhubert-finetuned-gtzan")
model = AutoModelForAudioClassification.from_pretrained("sanchit-gandhi/distilhubert-finetuned-gtzan")

I get
Can't load tokenizer for 'sanchit-gandhi/distilhubert-finetuned-gtzan'. If you were trying to load it from 'https://huggingface.co./models', make sure you don't have a local directory with the same name. Otherwise, make sure 'sanchit-gandhi/distilhubert-finetuned-gtzan' is the correct path to a directory containing all relevant files for a Wav2Vec2CTCTokenizer tokenizer.

This is done in google colab

Sign up or log in to comment