arpm01's picture
Update app.py
c5287fe
raw
history blame
516 Bytes
import gradio as gr
from transformers import pipeline, AutoFeatureExtractor, AutoModelForImageClassification
extractor = AutoFeatureExtractor.from_pretrained("nateraw/vit-age-classifier")
model = AutoModelForImageClassification.from_pretrained("nateraw/vit-age-classifier")
pipe = pipeline(task="image-classification",
model=model,
)
gr.Interface.load(pipe,
title="age class",
description="Add description",
).launch()