File size: 323 Bytes
94a4f55
 
 
 
142ec37
94a4f55
 
 
 
 
fc33888
94a4f55
 
fc33888
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st
from transformers import pipeline
import numpy
import torch


st.write("welcome to age detection app")

uploaded_files = st.file_uploader("Choose a image file")


pipe = pipeline("image-classification", model="dima806/facial_age_image_detection")

st.write(pipe(st.image(uploaded_files))[0]["label"])