Transformers How to use hmzkhnswt/brain_tumor_detection_using_vision_transformer with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="hmzkhnswt/brain_tumor_detection_using_vision_transformer")
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("hmzkhnswt/brain_tumor_detection_using_vision_transformer")
model = AutoModelForImageClassification.from_pretrained("hmzkhnswt/brain_tumor_detection_using_vision_transformer")