File size: 490 Bytes
d4257c1 244462f |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# import required libraries
from transformers import pipeline
import gradio as gr
import timm
# build gradio interface
model = pipeline("image-classification")
examples = ["birdA.jpg", "birdB.jpg", "birdC.jpg"]
gr.Interface.from_pipeline(model,
title = "tellme.ai",
examples = examples,
theme = gr.themes.Soft(),
css=".gradio-container {background: url('file=blue.jpg')}").launch() |