nadahh's picture
Create app.py
ec59379 verified
raw
history blame
217 Bytes
import streamlit as st
from transformers import pipeline
enable = st.checkbox("Enable camera")
picture = st.camera_input("Take a picture", disabled=not enable)
if picture:
out = pipeline(picture)
st.json(out)