Spaces:
Sleeping
Sleeping
File size: 10,156 Bytes
728527b | 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 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/static/react/favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="DeepFake Detection - Advanced AI-powered video analysis" />
<link rel="manifest" href="/static/react/manifest.json" />
<title>DeepFake Detection</title>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="/static/react/css/main.03d2e280.chunk.css" rel="stylesheet" />
<link href="/static/index.css" rel="stylesheet" />
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
padding-top: 70px;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: #1a1a1a;
color: white;
min-height: 100vh;
}
.nav-brand {
color: #64ffda;
font-size: 1.6rem;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
}
.nav-link {
color: white;
text-decoration: none;
padding: 0.6rem 1.2rem;
border-radius: 6px;
transition: all 0.3s ease;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.nav-link:hover {
background: #2a2a2a;
color: #64ffda;
}
.nav-link.highlight {
background: #64ffda;
color: #1a1a1a;
}
.nav-link.highlight:hover {
background: #4cd6b3;
}
.nav {
background: rgba(26, 26, 26, 0.95);
padding: 1rem 2rem;
height: 70px;
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 1000;
backdrop-filter: blur(10px);
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
justify-content: space-between;
}
.nav ul {
display: flex;
gap: 1.5rem;
list-style: none;
margin: 0;
padding: 0;
}
.content {
padding: 6rem 2rem;
min-height: calc(100vh - 70px);
background: linear-gradient(135deg, #111d40 0%, #1a237e 100%);
text-align: center;
}
.heading {
font-size: 3.5rem;
color: #64ffda;
margin-bottom: 1.5rem;
text-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
animation: fadeInUp 0.8s ease-out;
}
.para {
font-size: 1.2rem;
color: #8892b0;
max-width: 800px;
margin: 0 auto 3rem;
}
.feature-card {
background: rgba(42, 42, 42, 0.8);
padding: 3rem;
border-radius: 12px;
max-width: 600px;
margin: 0 auto;
border: 1px solid rgba(100, 255, 218, 0.1);
backdrop-filter: blur(10px);
animation: fadeInUp 0.6s ease-out;
}
.button {
background: #64ffda;
color: #1a1a1a;
border: none;
padding: 1rem 2.5rem;
border-radius: 8px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}
.button:hover {
background: #4cd6b3;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(100, 255, 218, 0.3);
}
.file-upload {
position: relative;
width: 100%;
max-width: 400px;
text-align: center;
}
input[type="file"] {
background: rgba(42, 42, 42, 0.8);
padding: 3rem 1.5rem;
border-radius: 12px;
border: 2px dashed rgba(100, 255, 218, 0.3);
color: white;
width: 100%;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
z-index: 1;
}
input[type="file"]:hover {
border-color: #64ffda;
background: rgba(42, 42, 42, 0.9);
}
.upload-hint {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #8892b0;
font-size: 0.9rem;
pointer-events: none;
z-index: 0;
width: 100%;
transition: all 0.3s ease;
}
.file-upload:hover .upload-hint {
color: #64ffda;
}
.result-container {
background: rgba(42, 42, 42, 0.8);
padding: 2rem;
border-radius: 12px;
margin: 3rem auto;
max-width: 800px;
border: 1px solid rgba(100, 255, 218, 0.1);
animation: fadeInUp 0.6s ease-out;
}
.result-heading {
color: #64ffda;
margin-bottom: 1.5rem;
font-size: 2rem;
}
.result-text {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.result-text.fake {
color: #e74c3c;
}
.result-text.real {
color: #2ecc71;
}
.confidence-text {
color: #8892b0;
font-size: 1.2rem;
}
.frames-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 3rem auto;
padding: 0 1rem;
}
.frame-item {
background: rgba(42, 42, 42, 0.8);
border-radius: 8px;
overflow: hidden;
border: 1px solid rgba(100, 255, 218, 0.1);
transition: transform 0.3s ease;
}
.frame-item:hover {
transform: translateY(-5px);
}
.frame-item img {
width: 100%;
height: auto;
display: block;
}
.frame-info {
padding: 1rem;
background: rgba(26, 26, 26, 0.9);
}
.frame-number {
color: #8892b0;
margin: 0;
}
.footer {
background: #1a1a1a;
color: #8892b0;
padding: 4rem 2rem;
border-top: 1px solid rgba(42, 42, 42, 0.8);
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
max-width: 1200px;
margin: 0 auto;
}
.footer-section h3 {
color: #64ffda;
margin-bottom: 1rem;
font-size: 1.2rem;
}
.footer-section p {
margin: 0.5rem 0;
font-size: 0.9rem;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
<script type="text/JavaScript">
</script>
</head>
<body>
<div id="root">
<nav class="nav">
<a href="/" class="nav-brand">DeepFake Detection</a>
<ul>
<li><a href="/" class="nav-link">Home</a></li>
<li><a href="/Detect" class="nav-link highlight">Detect</a></li>
</ul>
</nav>
<main class="content">
<h1 class="heading">IS YOUR VIDEO FAKE? CHECK IT!</h1>
<p class="para">Upload your video and our advanced AI will analyze it for signs of manipulation.</p>
<form action="/Detect" method="post" enctype="multipart/form-data" class="feature-card">
<div style="display: flex; flex-direction: column; align-items: center; gap: 2rem;">
<div class="file-upload">
<input type="file" name="video" accept="video/*" required />
<p class="upload-hint">Click to select or drag a video file here</p>
</div>
<button type="submit" class="button">Analyze Video</button>
</div>
</form>
<div id="results" style="display: none;">
<div class="result-container">
<h2 class="result-heading">Analysis Result</h2>
<p id="result-text" class="result-text"></p>
<p id="confidence-text" class="confidence-text"></p>
</div>
<div class="frames-container" id="frames-grid">
<!-- Frames will be inserted here dynamically -->
</div>
</div>
</main>
<footer class="footer">
<div class="footer-content">
<div class="footer-section">
<h3>About Us</h3>
<p>We are dedicated to detecting and preventing deepfake videos using advanced AI technology.</p>
</div>
<div class="footer-section">
<h3>Contact</h3>
<p>Email: contact@deepfakedetect.ai</p>
<p>GitHub: github.com/deepfake-detect</p>
</div>
<div class="footer-section">
<h3>Legal</h3>
<p>© 2025 TrueVision</p>
<p>All Rights Reserved</p>
</div>
</div>
</footer>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const data = window.data;
if (data) {
try {
const parsedData = typeof data === 'string' ? JSON.parse(data) : data;
const resultsDiv = document.getElementById('results');
const resultText = document.getElementById('result-text');
const confidenceText = document.getElementById('confidence-text');
const framesGrid = document.getElementById('frames-grid');
resultsDiv.style.display = 'block';
// Display result and confidence
resultText.textContent = parsedData.output;
resultText.className = `result-text ${parsedData.output.toLowerCase()}`;
confidenceText.textContent = `Confidence: ${parsedData.confidence.toFixed(2)}%`;
// Display frames if available
if (parsedData.frames && parsedData.frames.length > 0) {
framesGrid.innerHTML = parsedData.frames.map((frame, index) => `
<div class="frame-item">
<img src="/static/frames/${frame}" alt="Frame ${index + 1}" />
<div class="frame-info">
<p class="frame-number">Frame ${index + 1}</p>
</div>
</div>
`).join('');
}
} catch (error) {
console.error('Error parsing data:', error);
}
}
});
</script>
</body>
</html> |