Spaces:
Sleeping
Sleeping
File size: 4,018 Bytes
62139b4 |
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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
border-radius: 20px;
padding: 40px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
font-size: 2.5rem;
font-weight: 700;
}
.upload-section {
margin-bottom: 30px;
}
.upload-area {
border: 3px dashed #ddd;
border-radius: 15px;
padding: 60px 20px;
text-align: center;
transition: all 0.3s ease;
background: #fafafa;
cursor: pointer;
}
.upload-area:hover {
border-color: #667eea;
background: #f0f4ff;
}
.upload-area.dragover {
border-color: #667eea;
background: #e8f0ff;
transform: scale(1.02);
}
.upload-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
.upload-icon {
font-size: 3rem;
margin-bottom: 10px;
}
.upload-content p {
color: #666;
font-size: 1.1rem;
margin: 5px 0;
}
.browse-btn {
background: #667eea;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
}
.browse-btn:hover {
background: #5a6fd8;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.image-section {
margin-bottom: 30px;
}
.image-section h3 {
color: #333;
margin-bottom: 15px;
font-size: 1.3rem;
}
.image-container {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.image-container img {
max-width: 100%;
max-height: 400px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.button-section {
text-align: center;
margin-bottom: 30px;
}
.predict-btn {
background: linear-gradient(135deg, #ff6b6b, #ee5a24);
color: white;
border: none;
padding: 15px 40px;
border-radius: 10px;
font-size: 1.2rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}
.predict-btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}
.predict-btn:disabled {
background: #ccc;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.results-section {
background: #f8f9fa;
border-radius: 15px;
padding: 25px;
margin-bottom: 20px;
}
.results-section h3 {
color: #333;
margin-bottom: 20px;
font-size: 1.3rem;
text-align: center;
}
.results-container {
display: flex;
flex-direction: column;
gap: 15px;
}
.result-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.label {
font-weight: 600;
color: #333;
font-size: 1.1rem;
}
.probability {
font-weight: 700;
font-size: 1.2rem;
color: #667eea;
}
.loading {
text-align: center;
padding: 30px;
}
.spinner {
width: 50px;
height: 50px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading p {
color: #666;
font-size: 1.1rem;
}
/* Responsive design */
@media (max-width: 768px) {
.container {
padding: 20px;
margin: 10px;
}
h1 {
font-size: 2rem;
}
.upload-area {
padding: 40px 15px;
}
.predict-btn {
padding: 12px 30px;
font-size: 1.1rem;
}
} |