Kolpitor commited on
Commit
e6c4a8d
·
1 Parent(s): 194ee29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -21,6 +21,8 @@ from sklearn import preprocessing
21
 
22
  uploaded_file = st.file_uploader("Choose a picture", type=["png","jpg","jpeg"])
23
 
 
 
24
  if uploaded_file is not None:
25
  st.image(Image.open(uploaded_file),width=250)
26
 
@@ -73,7 +75,7 @@ model.summary()
73
 
74
 
75
 
76
- img = load_img("o.jpg", grayscale=True, target_size=(28, 28))
77
  img = img_to_array(img)
78
  img = img.reshape(1, 1, 28, 28)
79
  img = img.astype('float32')
 
21
 
22
  uploaded_file = st.file_uploader("Choose a picture", type=["png","jpg","jpeg"])
23
 
24
+ st.write(uploaded_file)
25
+
26
  if uploaded_file is not None:
27
  st.image(Image.open(uploaded_file),width=250)
28
 
 
75
 
76
 
77
 
78
+ img = load_img(uploaded_file, grayscale=True, target_size=(28, 28))
79
  img = img_to_array(img)
80
  img = img.reshape(1, 1, 28, 28)
81
  img = img.astype('float32')