Kolpitor commited on
Commit
5f9a6f6
1 Parent(s): 28a2b6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,4 +9,5 @@ from PIL import Image
9
  uploaded_file = st.file_uploader("Choose a picture")
10
 
11
 
12
- st.image(Image.open(uploaded_file),width=250)
 
 
9
  uploaded_file = st.file_uploader("Choose a picture")
10
 
11
 
12
+ if uploaded_file is not None:
13
+ st.image(Image.open(uploaded_file),width=250)