How to use 02shanky/test_model_graphics_classification_LION with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="02shanky/test_model_graphics_classification_LION") 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("02shanky/test_model_graphics_classification_LION") model = AutoModelForImageClassification.from_pretrained("02shanky/test_model_graphics_classification_LION")
What is a pickle import?
How to fix it?