Spaces:
Sleeping
Sleeping
File size: 2,775 Bytes
a6cac18 3d366c1 a6cac18 3d366c1 a6cac18 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
body {
background: linear-gradient(135deg, #74ebd5, #9face6);
}
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
margin-top: 1.25rem;
}
.model-result:first-child {
grid-column: 1/5;
}
.model-result {
padding: 1.25rem;
border-radius: 1rem;
border: 1px solid #e2e8f0;
text-align: center;
background-color: #f8fafc;
background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.85), rgba(241, 245, 249, 0.9));
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}
.model-result h3 {
margin: 0 0 0.75rem 0;
font-size: 1rem;
color: #1f2937;
}
.model-result .sentiment {
font-size: 1.2rem;
font-weight: 700;
margin: 0.5rem 0;
}
.model-result .confidence {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin: 0.5rem 0 0;
color: inherit;
}
.probability-label {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.08em;
opacity: 0.8;
}
.probability-badge {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 4rem;
padding: 0.45rem 0.8rem;
text-align: center;
border-radius: 999px;
font-size: 0.9rem;
font-weight: 700;
border: 1px solid transparent;
background-color: #e2e8f0;
}
.probability-value {
font-size: 1.1rem;
line-height: 1.1;
}
.model-result.positive {
background-image: linear-gradient(135deg, rgba(222, 247, 236, 0.95), rgba(187, 247, 208, 0.9));
border-color: #86efac;
}
.model-result.positive .sentiment {
color: #047857;
}
.model-result.negative {
background-image: linear-gradient(135deg, rgba(254, 228, 226, 0.95), rgba(254, 202, 202, 0.9));
border-color: #fca5a5;
}
.model-result.negative .sentiment {
color: #b91c1c;
}
.model-result.neutral {
background-image: linear-gradient(135deg, rgba(254, 249, 195, 0.95), rgba(254, 240, 138, 0.9));
border-color: #facc15;
}
.model-result.neutral .sentiment {
color: #a16207;
}
.probability-definitely {
background-color: #bbf7d0;
border-color: #34d399;
color: #065f46;
}
.probability-probably {
background-color: #fde68a;
border-color: #facc15;
color: #854d0e;
}
.probability-maybe {
background-color: #e0e7ff;
border-color: #93c5fd;
color: #1e3a8a;
}
.probability-unknown {
background-color: #e2e8f0;
border-color: #cbd5f5;
color: #475569;
}
.result.error {
background-color: #fee2e2;
border: 1px solid #f87171;
padding: 1rem;
border-radius: 0.75rem;
text-align: center;
color: #7f1d1d;
}
.inference-meta {
font-size: 0.85rem;
color: #64748b;
text-align: right;
}
|