dcavadia commited on
Commit
66f24b6
Β·
1 Parent(s): 6296a23

update gradio style

Browse files
Files changed (1) hide show
  1. src/ui/styles.py +14 -28
src/ui/styles.py CHANGED
@@ -49,16 +49,16 @@ def get_header_html() -> str:
49
  <p style="color: #64748b; margin: 12px 0; font-size: 14px;">
50
  <strong>πŸŽ“ Institution:</strong> Universidad Central de Venezuela β€’
51
  <strong>🧠 Architecture:</strong> NFNet-L0 + Weight Standardization β€’
52
- <strong>🎯 Validation Accuracy:</strong> 96.17% (0.961718) β€’
53
  <strong>⚑ Optimization:</strong> ONNX Runtime
54
  </p>
55
 
56
  <p style="color: #64748b; margin: 12px 0; font-size: 14px;">
57
- <strong>πŸ“Š F1-Score:</strong> 0.96 β€’
58
- <strong>🎯 Precision:</strong> 96.0% β€’
59
- <strong>πŸ“ˆ Recall:</strong> 96.0% β€’
60
  <strong>πŸ’Ύ Model Size:</strong> 24.1M parameters β€’
61
- <strong>πŸš€ Inference:</strong> Sub-second latency
62
  </p>
63
 
64
  <p style="color: #374151; margin: 12px 0;">
@@ -75,29 +75,15 @@ def get_footer_html() -> str:
75
  from ..config.settings import AppConfig
76
 
77
  return f"""
78
- <div class='footer' style="background: #f8fafc; padding: 16px; border-radius: 8px; margin-top: 20px;">
79
- <p style="margin: 0 0 8px 0; color: #1e293b; font-size: 14px; font-weight: 600;">πŸŽ“ Academic Research Project</p>
80
-
81
- <p style="margin: 0 0 6px 0; font-size: 12px; color: #64748b;">
82
- <strong>Institution:</strong> {AppConfig.INSTITUTION} β€’
83
- <strong>Advisor:</strong> Dra. Margarita Oliver Lull β€’
84
- <strong>Focus:</strong> CNN Architecture Optimization
85
- </p>
86
-
87
- <p style="margin: 0 0 6px 0; font-size: 12px; color: #64748b;">
88
- <strong>Technical Stack:</strong> NFNet-L0 (24.1M params) β€’ Weight Standardization β€’ Adam Optimizer β€’
89
- <strong>Dataset:</strong> ISIC + Clinical Images (22,618 total)
90
- </p>
91
-
92
- <p style="margin: 0 0 8px 0; font-size: 12px; color: #64748b;">
93
- <strong>Performance:</strong> 96.17% Accuracy β€’ F1-Score 0.96 β€’ Precision 96.0% β€’ Recall 96.0% β€’
94
- <strong>Loss:</strong> Cross Entropy 0.122597
95
- </p>
96
-
97
- <p style="margin: 0; font-size: 10px; color: #94a3b8;">
98
- Model v{AppConfig.VERSION} β€’ Updated {AppConfig.LAST_UPDATE} β€’ Research by Daniel Cavadia β€’ TEG UCV 2025
99
- </p>
100
- </div>
101
  """
102
 
103
  def get_model_info_html() -> str:
 
49
  <p style="color: #64748b; margin: 12px 0; font-size: 14px;">
50
  <strong>πŸŽ“ Institution:</strong> Universidad Central de Venezuela β€’
51
  <strong>🧠 Architecture:</strong> NFNet-L0 + Weight Standardization β€’
52
+ <strong>🎯 Validation Accuracy:</strong> 96.17% (0.9617) β€’
53
  <strong>⚑ Optimization:</strong> ONNX Runtime
54
  </p>
55
 
56
  <p style="color: #64748b; margin: 12px 0; font-size: 14px;">
57
+ <strong>πŸ“Š F1-Score:</strong> 0.9608 β€’
58
+ <strong>🎯 Precision:</strong> 86.67% β€’
59
+ <strong>πŸ“ˆ Recall:</strong> 96.03% β€’
60
  <strong>πŸ’Ύ Model Size:</strong> 24.1M parameters β€’
61
+ <strong>πŸ” Specificity:</strong> 1.0
62
  </p>
63
 
64
  <p style="color: #374151; margin: 12px 0;">
 
75
  from ..config.settings import AppConfig
76
 
77
  return f"""
78
+ πŸŽ“ Academic Research Project
79
+
80
+ Institution: {AppConfig.INSTITUTION} β€’ Advisor: Dra. Margarita Oliver Lull β€’ Focus: CNN Architecture Optimization
81
+
82
+ Technical Stack: NFNet-L0 (24.1M params) β€’ Weight Standardization β€’ Adam Optimizer β€’ Dataset: ISIC + Clinical Images (22,618 total)
83
+
84
+ Performance: 96.17% Accuracy β€’ F1-Score 0.9608 β€’ Precision 86.67% β€’ Recall 96.03% β€’ Specificity 1.0
85
+
86
+ Model v{AppConfig.VERSION} β€’ Updated {AppConfig.LAST_UPDATE} β€’ Research by Daniel Cavadia β€’ TEG UCV 2025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  """
88
 
89
  def get_model_info_html() -> str: