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