Spaces:
Sleeping
Sleeping
model.py
Browse files
model.py
CHANGED
|
@@ -164,20 +164,16 @@ Confidence: **{audio_conf}%**
|
|
| 164 |
fusion_score += 20
|
| 165 |
|
| 166 |
# ================= INTERPRETATION =================
|
| 167 |
-
|
| 168 |
-
if fusion_score > 60:
|
| 169 |
alignment_message = "Multimodal signals align toward a positive and confident contextual interpretation."
|
| 170 |
-
color = "#22c55e"
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
color = "#ef4444"
|
| 175 |
-
|
| 176 |
else:
|
| 177 |
-
alignment_message = "Multimodal signals are
|
| 178 |
-
color = "#
|
| 179 |
-
|
| 180 |
-
processing_time = round(time.time() - start_time, 2)
|
| 181 |
|
| 182 |
# ================= DISPLAY SUMMARY =================
|
| 183 |
|
|
@@ -194,9 +190,7 @@ border:1px solid #1f2a44;">
|
|
| 194 |
|
| 195 |
<h3>📊 Fusion Score</h3>
|
| 196 |
|
| 197 |
-
<span style="color:{color};
|
| 198 |
-
font-size:32px;
|
| 199 |
-
font-weight:700;">
|
| 200 |
{round(fusion_score,2)}
|
| 201 |
</span>
|
| 202 |
|
|
@@ -207,7 +201,6 @@ font-weight:700;">
|
|
| 207 |
{alignment_message}
|
| 208 |
|
| 209 |
<br>
|
| 210 |
-
|
| 211 |
⏱ Processing Time: {processing_time} sec
|
| 212 |
|
| 213 |
</div>
|
|
|
|
| 164 |
fusion_score += 20
|
| 165 |
|
| 166 |
# ================= INTERPRETATION =================
|
| 167 |
+
# ================= INTERPRETATION =================
|
| 168 |
+
if fusion_score >= 60:
|
| 169 |
alignment_message = "Multimodal signals align toward a positive and confident contextual interpretation."
|
| 170 |
+
color = "#22c55e" # GREEN
|
| 171 |
+
elif fusion_score >= 20:
|
| 172 |
+
alignment_message = "Multimodal signals show moderate contextual alignment."
|
| 173 |
+
color = "#f59e0b" # ORANGE
|
|
|
|
|
|
|
| 174 |
else:
|
| 175 |
+
alignment_message = "Multimodal signals are weak, mixed, or uncertain."
|
| 176 |
+
color = "#ef4444" # RED
|
|
|
|
|
|
|
| 177 |
|
| 178 |
# ================= DISPLAY SUMMARY =================
|
| 179 |
|
|
|
|
| 190 |
|
| 191 |
<h3>📊 Fusion Score</h3>
|
| 192 |
|
| 193 |
+
<span style="color:{color}; font-size:34px; font-weight:800;">
|
|
|
|
|
|
|
| 194 |
{round(fusion_score,2)}
|
| 195 |
</span>
|
| 196 |
|
|
|
|
| 201 |
{alignment_message}
|
| 202 |
|
| 203 |
<br>
|
|
|
|
| 204 |
⏱ Processing Time: {processing_time} sec
|
| 205 |
|
| 206 |
</div>
|