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