Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ theme = gr.themes.Soft(
|
|
20 |
|
21 |
css = """
|
22 |
#warning {background-color: #FFCCCB}
|
23 |
-
.
|
24 |
"""
|
25 |
|
26 |
# Désactiver GPU et logs TensorFlow
|
@@ -401,7 +401,7 @@ def generate_gradcam_ui(progress=gr.Progress()):
|
|
401 |
# ---- INTERFACE GRADIO ----
|
402 |
example_paths = ["ISIC_0024627.jpg", "ISIC_0025539.jpg", "ISIC_0031410.jpg"]
|
403 |
|
404 |
-
with gr.Blocks(theme=theme, title="Analyse de lésions") as demo:
|
405 |
gr.Markdown("# 🔬 Skin Care : analyse de lésions cutanées")
|
406 |
|
407 |
models_status = []
|
@@ -419,7 +419,7 @@ with gr.Blocks(theme=theme, title="Analyse de lésions") as demo:
|
|
419 |
gr.Examples(examples=example_paths, inputs=input_image)
|
420 |
with gr.Column(scale=2):
|
421 |
output_label = gr.Label(label="📊 Diagnostic global")
|
422 |
-
output_text = gr.Label(label=" Explication", elem_classes="
|
423 |
output_plot = gr.Plot(label="📈 Probabilités")
|
424 |
output_gradcam = gr.Image(label="🔍 Visualisation Grad-CAM")
|
425 |
output_status = gr.Textbox(label="Statut", interactive=False)
|
|
|
20 |
|
21 |
css = """
|
22 |
#warning {background-color: #FFCCCB}
|
23 |
+
.output-class svelte-1mutzus {font-size: 16px !important;}
|
24 |
"""
|
25 |
|
26 |
# Désactiver GPU et logs TensorFlow
|
|
|
401 |
# ---- INTERFACE GRADIO ----
|
402 |
example_paths = ["ISIC_0024627.jpg", "ISIC_0025539.jpg", "ISIC_0031410.jpg"]
|
403 |
|
404 |
+
with gr.Blocks(theme=theme, title="Analyse de lésions", css=css) as demo:
|
405 |
gr.Markdown("# 🔬 Skin Care : analyse de lésions cutanées")
|
406 |
|
407 |
models_status = []
|
|
|
419 |
gr.Examples(examples=example_paths, inputs=input_image)
|
420 |
with gr.Column(scale=2):
|
421 |
output_label = gr.Label(label="📊 Diagnostic global")
|
422 |
+
output_text = gr.Label(label=" Explication", elem_classes="output-class svelte-1mutzus")
|
423 |
output_plot = gr.Plot(label="📈 Probabilités")
|
424 |
output_gradcam = gr.Image(label="🔍 Visualisation Grad-CAM")
|
425 |
output_status = gr.Textbox(label="Statut", interactive=False)
|