Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ if uploaded_file is not None:
|
|
| 48 |
image = Image.open(uploaded_file).convert("RGB")
|
| 49 |
|
| 50 |
# Étape 2 : Affichage de l’image sélectionnée
|
| 51 |
-
st.image(image, caption=" **Image sélectionnée**", use_container_width=True)
|
| 52 |
|
| 53 |
# Étape 3 : Bouton de validation
|
| 54 |
if st.button("✅ Valider l'image"):
|
|
@@ -61,4 +61,4 @@ if uploaded_file is not None:
|
|
| 61 |
fruit_name = labels[int(predicted_class.item())]
|
| 62 |
|
| 63 |
# Étape 5 : Affichage du résultat
|
| 64 |
-
st.success(f" **Classe prédite : {fruit_name}**")
|
|
|
|
| 48 |
image = Image.open(uploaded_file).convert("RGB")
|
| 49 |
|
| 50 |
# Étape 2 : Affichage de l’image sélectionnée
|
| 51 |
+
st.image(image, caption="🖼️ **Image sélectionnée**", use_container_width=True)
|
| 52 |
|
| 53 |
# Étape 3 : Bouton de validation
|
| 54 |
if st.button("✅ Valider l'image"):
|
|
|
|
| 61 |
fruit_name = labels[int(predicted_class.item())]
|
| 62 |
|
| 63 |
# Étape 5 : Affichage du résultat
|
| 64 |
+
st.success(f"🎯 **Classe prédite : {fruit_name}**")
|