Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
|
@@ -192,22 +192,7 @@ Confidence: **{audio_conf}%**
|
|
| 192 |
# ================= FUSION REASONING =================
|
| 193 |
|
| 194 |
reasoning_lines = []# ================= CONTRADICTION DETECTION =================
|
| 195 |
-
|
| 196 |
-
if text_label == "POSITIVE" and audio_label == "NEGATIVE":
|
| 197 |
-
reasoning_lines.append(
|
| 198 |
-
"⚠ Cross-modal inconsistency detected: the text expresses positivity "
|
| 199 |
-
"but the voice tone suggests negativity."
|
| 200 |
-
)
|
| 201 |
-
if text_label == "NEGATIVE" and audio_label == "POSITIVE":
|
| 202 |
-
reasoning_lines.append(
|
| 203 |
-
"⚠ Cross-modal inconsistency detected: the text expresses negativity "
|
| 204 |
-
"while the voice tone appears positive."
|
| 205 |
-
)
|
| 206 |
-
if image_label and topic_label:
|
| 207 |
-
if topic_label == "technology":
|
| 208 |
-
reasoning_lines.append(
|
| 209 |
-
"The textual topic relates to technology, which aligns with the detected visual content."
|
| 210 |
-
)
|
| 211 |
|
| 212 |
if text_label:
|
| 213 |
reasoning_lines.append(
|
|
|
|
| 192 |
# ================= FUSION REASONING =================
|
| 193 |
|
| 194 |
reasoning_lines = []# ================= CONTRADICTION DETECTION =================
|
| 195 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
if text_label:
|
| 198 |
reasoning_lines.append(
|