Update
This commit is contained in:
parent
ca0e880cba
commit
14fda0f4cf
19
frontend/public/fact-checker-logo.svg
Normal file
19
frontend/public/fact-checker-logo.svg
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect x="5" y="5" width="62" height="62" rx="18" fill="#EDF5FC"/>
|
||||||
|
<rect x="5.75" y="5.75" width="60.5" height="60.5" rx="17.25" stroke="#D9E8F7" stroke-width="1.5"/>
|
||||||
|
|
||||||
|
<path
|
||||||
|
d="M23 18H40L49 27V49C49 52.3137 46.3137 55 43 55H23C19.6863 55 17 52.3137 17 49V24C17 20.6863 19.6863 18 23 18Z"
|
||||||
|
fill="white"
|
||||||
|
stroke="#0459B6"
|
||||||
|
stroke-width="3"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
/>
|
||||||
|
<path d="M40 18V25C40 26.6569 41.3431 28 43 28H49" stroke="#0459B6" stroke-width="3" stroke-linejoin="round"/>
|
||||||
|
<path d="M24 31H38" stroke="#0459B6" stroke-width="3.2" stroke-linecap="round"/>
|
||||||
|
<path d="M24 39H35" stroke="#0459B6" stroke-width="3.2" stroke-linecap="round"/>
|
||||||
|
|
||||||
|
<circle cx="46" cy="46" r="11.5" fill="white" stroke="#FFA900" stroke-width="4"/>
|
||||||
|
<path d="M54 54L59 59" stroke="#FFA900" stroke-width="4.5" stroke-linecap="round"/>
|
||||||
|
<path d="M41.5 46L44.5 49L50.5 42.5" stroke="#0459B6" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.0 KiB |
7
frontend/public/favicon.svg
Normal file
7
frontend/public/favicon.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect x="4" y="4" width="56" height="56" rx="16" fill="#EDF5FC"/>
|
||||||
|
<rect x="5" y="5" width="54" height="54" rx="15" stroke="#D9E8F7" stroke-width="2"/>
|
||||||
|
<circle cx="30" cy="29" r="14" fill="white" stroke="#0459B6" stroke-width="5"/>
|
||||||
|
<path d="M40 40L50 50" stroke="#FFA900" stroke-width="6" stroke-linecap="round"/>
|
||||||
|
<path d="M24 29.5L28.5 34L37 24.5" stroke="#0459B6" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 546 B |
@ -170,8 +170,8 @@ const About = () => {
|
|||||||
Verdikt sa určí na základe pomeru:
|
Verdikt sa určí na základe pomeru:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Ak <code>Skóre_Pravda / Celkové_Skóre > 0.5</code> → <strong>✅ Pravdepodobne pravda</strong></li>
|
<li>Ak <code>Skóre_Pravda / Celkové_Skóre > 0.5</code> → <strong>🟢 Pravdepodobne pravda</strong></li>
|
||||||
<li>Ak <code>Skóre_Nepravda / Celkové_Skóre > 0.5</code> → <strong>❌ Pravdepodobne nepravda</strong></li>
|
<li>Ak <code>Skóre_Nepravda / Celkové_Skóre > 0.5</code> → <strong>🔴 Pravdepodobne nepravda</strong></li>
|
||||||
<li>Inak → <strong>⚠️ Nejednoznačné</strong> (ak sú dôkazy protichodné alebo slabé)</li>
|
<li>Inak → <strong>⚠️ Nejednoznačné</strong> (ak sú dôkazy protichodné alebo slabé)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@ -199,18 +199,21 @@ function Home() {
|
|||||||
if (isObject) {
|
if (isObject) {
|
||||||
const entailment = s.entailment_prob || 0;
|
const entailment = s.entailment_prob || 0;
|
||||||
const contradiction = s.contradiction_prob || 0;
|
const contradiction = s.contradiction_prob || 0;
|
||||||
const neutral = s.neutral_prob || 0;
|
|
||||||
|
|
||||||
const entPct = Math.round(entailment * 100);
|
const entPct = Math.round(entailment * 100);
|
||||||
const conPct = Math.round(contradiction * 100);
|
const conPct = Math.round(contradiction * 100);
|
||||||
const neuPct = Math.round(neutral * 100);
|
|
||||||
|
|
||||||
if (s.label === 'entailment') {
|
if (entailment > 0.5) {
|
||||||
badge = <span className="source-badge badge-success">{entPct}% Pravda</span>;
|
badge = <span className="source-badge badge-success">{entPct}% Pravda</span>;
|
||||||
} else if (s.label === 'contradiction') {
|
} else if (contradiction > 0.5) {
|
||||||
badge = <span className="source-badge badge-danger">{conPct}% Nepravda</span>;
|
badge = <span className="source-badge badge-danger">{conPct}% Nepravda</span>;
|
||||||
} else {
|
} else {
|
||||||
badge = <span className="source-badge badge-neutral">Neutrálne ({neuPct}%)</span>;
|
// Ak je neutrálne, zobrazíme najvyššiu pravdepodobnosť (Pravda/Nepravda)
|
||||||
|
if (entailment >= contradiction) {
|
||||||
|
badge = <span className="source-badge badge-neutral">{entPct}% Pravda</span>;
|
||||||
|
} else {
|
||||||
|
badge = <span className="source-badge badge-neutral">{conPct}% Nepravda</span>;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user