jurgenbollo commited on
Commit
cf44aaf
·
verified ·
1 Parent(s): a6b2335

Update src/streamlit_app1.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app1.py +1 -1
src/streamlit_app1.py CHANGED
@@ -26,7 +26,7 @@ if uploaded_file:
26
  st.image(image, caption="Image chargée", use_column_width=True)
27
 
28
  # Prétraitement
29
- image = image.resize((224, 224)) # à adapter selon votre modèle
30
  img_array = np.array(image) / 255.0
31
  img_array = np.expand_dims(img_array, axis=0)
32
 
 
26
  st.image(image, caption="Image chargée", use_column_width=True)
27
 
28
  # Prétraitement
29
+ image = image.resize((128, 128)) # à adapter selon votre modèle
30
  img_array = np.array(image) / 255.0
31
  img_array = np.expand_dims(img_array, axis=0)
32