Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,8 @@ if uploaded_file:
|
|
| 20 |
# Vérification du chemin du fichier
|
| 21 |
file_path = uploaded_file.name # Récupération du nom du fichier
|
| 22 |
if "Normal" in file_path:
|
| 23 |
-
st.success("
|
| 24 |
elif "Anomaly" in file_path:
|
| 25 |
-
st.error("
|
| 26 |
else:
|
| 27 |
st.warning("⚠️ Impossible de déterminer si l'image est normale ou anormale.") # Cas où le chemin n'indique pas l'état de l'image
|
|
|
|
| 20 |
# Vérification du chemin du fichier
|
| 21 |
file_path = uploaded_file.name # Récupération du nom du fichier
|
| 22 |
if "Normal" in file_path:
|
| 23 |
+
st.success(" L'image est normale.") # Message vert pour une image normale
|
| 24 |
elif "Anomaly" in file_path:
|
| 25 |
+
st.error(" L'image possède une anomalie.") # Message rouge pour une anomalie
|
| 26 |
else:
|
| 27 |
st.warning("⚠️ Impossible de déterminer si l'image est normale ou anormale.") # Cas où le chemin n'indique pas l'état de l'image
|