Gameel's picture
Update app.py
9c825c7
raw
history blame contribute delete
No virus
549 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline(task="image-classification",
# model that can do 22k-category classification
model="microsoft/beit-base-patch16-224-pt22k-ft22k")
gr.Interface.from_pipeline(pipe,
title="22k Image Classification",
description="Object Recognition using Microsoft BEIT",
examples = ['cat.jpg', 'dog.jpg',],
allow_flagging="never").launch(inbrowser=True)