import gradio as gr from transformers import pipeline title = 'Interactive Demo for Image Classification' des = 'Demo for image classification using Vision Transformer built by Google Brain' article = "
Space by Wvle | ViT" pipe = pipeline("image-classification") gr.Interface.from_pipeline(pipe, title=title, description=des, article=article, examples=[['cat.jpg'], ['dog.jpg'], ['elephant.jpg']] ).launch()