Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
gagandwaz
/
Photo_class
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
gagandwaz
commited on
Aug 19, 2023
Commit
9880c35
·
1 Parent(s):
6b50dd8
app
Browse files
Files changed (1)
hide
show
app.py
+6
-0
app.py
ADDED
Viewed
@@ -0,0 +1,6 @@
1
+
import streamlit as st
2
+
picture = st.camera_input("First, take a picture...")
3
+
4
+
if picture:
5
+
with open ('test.jpg','wb') as file:
6
+
file.write(picture.getbuffer())