How to use ruben09/emotion_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ruben09/emotion_classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("ruben09/emotion_classification") model = AutoModelForImageClassification.from_pretrained("ruben09/emotion_classification")
How to fix it?