Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,9 @@ css = """
|
|
28 |
font-weight: bold;
|
29 |
padding: 3px 6px;
|
30 |
border-radius: 4px;
|
31 |
-
|
|
|
|
|
32 |
}
|
33 |
|
34 |
/* Surbrillance pour "Bénin" (vert #34EA3A) */
|
@@ -38,7 +40,9 @@ css = """
|
|
38 |
font-weight: bold;
|
39 |
padding: 3px 6px;
|
40 |
border-radius: 4px;
|
41 |
-
|
|
|
|
|
42 |
}
|
43 |
|
44 |
/* Style pour le Diagnostic global */
|
@@ -54,7 +58,6 @@ css = """
|
|
54 |
|
55 |
|
56 |
|
57 |
-
|
58 |
# Désactiver GPU et logs TensorFlow
|
59 |
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
|
60 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
@@ -367,7 +370,7 @@ def quick_predict_ui(image_pil):
|
|
367 |
|
368 |
# Ajoute une classe CSS en fonction du diagnostic
|
369 |
if global_diag == "Malin":
|
370 |
-
global_diag_html = f'<
|
371 |
elif global_diag == "Bénin":
|
372 |
global_diag_html = f'<span class="highlight benin">{global_diag}</span>'
|
373 |
else:
|
|
|
28 |
font-weight: bold;
|
29 |
padding: 3px 6px;
|
30 |
border-radius: 4px;
|
31 |
+
}
|
32 |
+
.highlight.malin h2.output-class {
|
33 |
+
font-size: 24px !important; /* Cible le <h2> à l'intérieur du span */
|
34 |
}
|
35 |
|
36 |
/* Surbrillance pour "Bénin" (vert #34EA3A) */
|
|
|
40 |
font-weight: bold;
|
41 |
padding: 3px 6px;
|
42 |
border-radius: 4px;
|
43 |
+
}
|
44 |
+
.highlight.benin h2.output-class {
|
45 |
+
font-size: 24px !important; /* Optionnel : si tu veux aussi appliquer à "Bénin" */
|
46 |
}
|
47 |
|
48 |
/* Style pour le Diagnostic global */
|
|
|
58 |
|
59 |
|
60 |
|
|
|
61 |
# Désactiver GPU et logs TensorFlow
|
62 |
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
|
63 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
|
|
370 |
|
371 |
# Ajoute une classe CSS en fonction du diagnostic
|
372 |
if global_diag == "Malin":
|
373 |
+
global_diag_html = f'<img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/mel.png" width="200"><span class="highlight malin">{global_diag}</span>'
|
374 |
elif global_diag == "Bénin":
|
375 |
global_diag_html = f'<span class="highlight benin">{global_diag}</span>'
|
376 |
else:
|