Spaces:
Runtime error
Runtime error
File size: 543 Bytes
99aeeaf 6658063 |
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,share=True) |