File size: 516 Bytes
c2cbc53
b515163
8142bba
b515163
8142bba
b515163
8142bba
b515163
fc7c04c
c5287fe
8142bba
 
b515163
8142bba
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()