Update app.py
Browse files
app.py
CHANGED
@@ -372,7 +372,7 @@ def quick_predict_ui(image_pil):
|
|
372 |
|
373 |
# Ajoute une classe CSS en fonction du diagnostic
|
374 |
if global_diag == "Malin":
|
375 |
-
global_diag_html = f'<div style="float:left"><img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/mel.
|
376 |
elif global_diag == "Bénin":
|
377 |
global_diag_html = f'<span class="highlight benin">{global_diag}</span>'
|
378 |
else:
|
@@ -401,7 +401,7 @@ def quick_predict_ui(image_pil):
|
|
401 |
|
402 |
|
403 |
|
404 |
-
return f"{global_diag_html}
|
405 |
except Exception as e:
|
406 |
return f"Erreur: {e}", None, "❌ Erreur lors de l'analyse."
|
407 |
|
|
|
372 |
|
373 |
# Ajoute une classe CSS en fonction du diagnostic
|
374 |
if global_diag == "Malin":
|
375 |
+
global_diag_html = f'<div style="float:left"><img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/mel.png" width="100"></div><span class="highlight malin">{global_diag} : <strong>{top_class_pourcent} %</strong> ▪ {top_class_name.upper()} ▪</span>'
|
376 |
elif global_diag == "Bénin":
|
377 |
global_diag_html = f'<span class="highlight benin">{global_diag}</span>'
|
378 |
else:
|
|
|
401 |
|
402 |
|
403 |
|
404 |
+
return f"{global_diag_html}", desc_top, fig, "✅ Analyse terminée. Prêt pour Grad-CAM."
|
405 |
except Exception as e:
|
406 |
return f"Erreur: {e}", None, "❌ Erreur lors de l'analyse."
|
407 |
|