ericjedha commited on
Commit
9c1d62d
·
verified ·
1 Parent(s): b6f09aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -41,7 +41,7 @@ body {
41
  border-radius: 4px;
42
  display: inline-block;
43
  font-weight: bold;
44
- font-size:24px
45
  margin: 5px 0;
46
  }
47
 
@@ -52,7 +52,7 @@ body {
52
  border-radius: 4px;
53
  display: inline-block;
54
  font-weight: bold;
55
- font-size:24px
56
  margin: 5px 0;
57
  }
58
 
@@ -522,7 +522,7 @@ def quick_predict_ui(image_pil):
522
  <div>
523
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
524
  <div class="highlight malin">
525
- {global_diag} : {ensemble_probs[top_class_idx]*100:.2f}% {top_class_name.upper()}
526
  </div>
527
  </div>
528
  </div>
@@ -531,7 +531,7 @@ def quick_predict_ui(image_pil):
531
  img_src = "non-mel.webp" if global_diag == "Bénin" else "mel.webp"
532
  global_diag_html = f'''
533
  <div class="diagnostic-global clearfix">
534
- <img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/{img_src}" width="80" style="float:left;margin-right:10px;">
535
  <div>
536
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
537
  <div class="highlight benin">
 
41
  border-radius: 4px;
42
  display: inline-block;
43
  font-weight: bold;
44
+ font-size:24px;
45
  margin: 5px 0;
46
  }
47
 
 
52
  border-radius: 4px;
53
  display: inline-block;
54
  font-weight: bold;
55
+ font-size:24px;
56
  margin: 5px 0;
57
  }
58
 
 
522
  <div>
523
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
524
  <div class="highlight malin">
525
+ {global_diag} : {ensemble_probs[top_class_idx]*100:.2f}% <br> ╰┈➤ {top_class_name.upper()}
526
  </div>
527
  </div>
528
  </div>
 
531
  img_src = "non-mel.webp" if global_diag == "Bénin" else "mel.webp"
532
  global_diag_html = f'''
533
  <div class="diagnostic-global clearfix">
534
+ <img src="https://huggingface.co/spaces/ericjedha/skin_care/resolve/main/{img_src}" width="150" style="float:left;margin-right:10px;">
535
  <div>
536
  <span style="font-size:16px;font-weight:bold;">Diagnostic Global</span><br>
537
  <div class="highlight benin">