Update src/streamlit_app1.py
Browse files- 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((
|
| 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 |
|