Spaces:
Runtime error
Runtime error
File size: 673 Bytes
e61b2e5 f3a52cc d43efee f3a52cc e61b2e5 f3a52cc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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 = "<p style='text-align: center'><a href='https://www.linkedin.com/in/oayodeji/'>Space by Wvle</a> | <a href='https://arxiv.org/abs/2010.11929'>ViT</a>"
pipe = pipeline("image-classification")
gr.Interface.from_pipeline(pipe,
title=title,
description=des,
article=article,
examples=[['cat.jpg'], ['dog.jpg'], ['elephant.jpg']]
).launch() |