Create app.py
Browse files
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)
|