nadahh commited on
Commit
ec59379
·
verified ·
1 Parent(s): 667ff70

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+ enable = st.checkbox("Enable camera")
4
+ picture = st.camera_input("Take a picture", disabled=not enable)
5
+
6
+ if picture:
7
+ out = pipeline(picture)
8
+ st.json(out)