File size: 533 Bytes
8618073
 
 
 
 
 
 
b11e968
8618073
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr
from transformers import pipeline
pipe = pipeline(task="image-classification",
                # model for 22k-category classification
                model="google/vit-base-patch16-224")
gr.Interface.from_pipeline(pipe,
                           title="VIT GOOGLE IMG CLASSIFIER",
                           description="Object Recognition ....",
                           examples = ['wonder_cat.jpg',
                                       'aki_dog.jpg',],
                           ).launch(inbrowser=True)