ericjedha commited on
Commit
6580b12
·
verified ·
1 Parent(s): 0bfecf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -73,6 +73,7 @@ body {
73
  border: 1px solid #d4b5ff;
74
  font-size: 14px;
75
  color: #333;
 
76
  }
77
 
78
 
@@ -538,7 +539,7 @@ def quick_predict_ui(image_pil):
538
  if global_diag == "Malin":
539
  global_diag_html = f'''
540
  <div class="diagnostic-global clearfix">
541
- <img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/mel.webp" width="80" style="float:left;margin-right:10px;">
542
  <div>
543
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
544
  <div class="highlight malin">
@@ -551,7 +552,7 @@ def quick_predict_ui(image_pil):
551
  img_src = "non-mel.webp" if global_diag == "Bénin" else "mel.webp"
552
  global_diag_html = f'''
553
  <div class="diagnostic-global clearfix">
554
- <img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/{img_src}" width="80" style="float:left;margin-right:10px;">
555
  <div>
556
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
557
  <div class="highlight benin">
@@ -730,7 +731,7 @@ with gr.Blocks(theme=theme, title="Analyse de lésions", css=css) as demo:
730
  gr.Markdown("### 💡 Explication")
731
  output_text = gr.HTML(
732
  value="",
733
- elem_classes="feedback-container"
734
  )
735
 
736
  output_warning = gr.HTML(
 
73
  border: 1px solid #d4b5ff;
74
  font-size: 14px;
75
  color: #333;
76
+ font-family: Arial, sans-serif !important;
77
  }
78
 
79
 
 
539
  if global_diag == "Malin":
540
  global_diag_html = f'''
541
  <div class="diagnostic-global clearfix">
542
+ <img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/mel.webp" width="150" style="float:left;margin-right:10px;">
543
  <div>
544
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
545
  <div class="highlight malin">
 
552
  img_src = "non-mel.webp" if global_diag == "Bénin" else "mel.webp"
553
  global_diag_html = f'''
554
  <div class="diagnostic-global clearfix">
555
+ <img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/{img_src}" width="150" style="float:left;margin-right:10px;">
556
  <div>
557
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
558
  <div class="highlight benin">
 
731
  gr.Markdown("### 💡 Explication")
732
  output_text = gr.HTML(
733
  value="",
734
+ elem_classes="warning-container"
735
  )
736
 
737
  output_warning = gr.HTML(