jurgenbollo commited on
Commit
1f28db3
·
verified ·
1 Parent(s): 39ad34a

Update src/streamlit_app1.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app1.py +1 -1
src/streamlit_app1.py CHANGED
@@ -36,7 +36,7 @@ if uploaded_file:
36
  # Bouton pour déclencher la prédiction
37
  if st.button("Prédire"):
38
  with st.spinner("Prétraitement de l’image..."):
39
- image = image.resize((224, 224))
40
  img_array = np.array(image) / 255.0
41
  img_array = np.expand_dims(img_array, axis=0)
42
 
 
36
  # Bouton pour déclencher la prédiction
37
  if st.button("Prédire"):
38
  with st.spinner("Prétraitement de l’image..."):
39
+ image = image.resize((128, 128))
40
  img_array = np.array(image) / 255.0
41
  img_array = np.expand_dims(img_array, axis=0)
42