More UI fixes
Browse files197 unmodified lines19819920020120220320420520611 unmodified lines218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252197 unmodified lines</div></form><div className="w-full bg-slate-950 border border-emerald-900 rounded-2xl p-5 shadow-md shadow-emerald-900/40 animate-fade-in-scale h-full flex flex-col justify-between"><h2 className="text-lg font-semibold mb-2">Final conclusion</h2><p className="text-sm text-emerald-200/80 mb-3">Overall confidence based on all faces found.</p>{result ? ((() => {const rawScore =11 unmodified linesconst angle = (safePercent / 100) * 360;return (<div className="space-y-4"><div className="flex items-center justify-between text-xs font-mono text-emerald-200/80"><span>Fake probability</span><span>{isNaN(percent) ? "-" : `${safePercent}%`}</span></div><div className="flex items-center gap-5"><divclassName="relative h-28 w-28 rounded-full flex items-center justify-center mx-auto"style={{background: `conic-gradient(${primaryColor} ${angle}deg, ${trackColor} ${angle}deg)`,}}><div className="h-20 w-20 rounded-full bg-slate-950 flex flex-col items-center justify-center border border-slate-700"><span className="text-[10px] font-mono text-emerald-200/80">{labelText}</span><span className="text-sm font-semibold">{isNaN(percent) ? "-" : `${safePercent}%`}</span></div></div><div className="text-[11px] text-emerald-200/80 space-y-1"><div>REAL: {realProb.toFixed(3)}</div><div>FAKE: {fakeProb.toFixed(3)}</div><div className="text-emerald-300/80 text-[10px]">Circle shows how much of the model's belief is fake.</div></div></div></div>197 unmodified lines19819920020120220320420511 unmodified lines217218219220221222223224225226227228229230231232233234235236237238239240241242243244197 unmodified lines</div></form><div className="w-full bg-slate-950 border border-emerald-900 rounded-2xl p-5 shadow-md shadow-emerald-900/40 animate-fade-in-scale h-full flex flex-col gap-4 items-center text-center"><h2 className="text-lg font-semibold mb-2">Final conclusion</h2>{result ? ((() => {const rawScore =11 unmodified linesconst angle = (safePercent / 100) * 360;return (<div className="flex flex-col items-center gap-4"><divclassName="relative h-28 w-28 rounded-full flex items-center justify-center"style={{background: `conic-gradient(${primaryColor} ${angle}deg, ${trackColor} ${angle}deg)`,}}><div className="h-20 w-20 rounded-full bg-slate-950 flex flex-col items-center justify-center border border-slate-700"><span className="text-[10px] font-mono text-emerald-200/80">{labelText}</span><span className="text-sm font-semibold">{isNaN(percent) ? "-" : `${safePercent}%`}</span></div></div><div className="text-[11px] text-emerald-200/80 space-y-1"><div>REAL: {realProb.toFixed(3)}</div><div>FAKE: {fakeProb.toFixed(3)}</div><div className="text-emerald-300/80 text-[10px]">Circle shows how much of the model's belief is fake.</div></div></div>
frontend/pages/analyze.jsx+21-29