Removed some texts and unused components
Browse filesFiles changed (2)
122342 unmodified lines7891110111261 unmodified lines7475767977817879808114 unmodified lines96979810210310410510610710899100101102import { useEffect, useRef, useState } from "react";import ThemeToggle from "../components/ThemeToggle";import FrameGrid from "../components/FrameGrid";
export default function Analyze() {2 unmodified lines const [loading, setLoading] = useState(false); const [error, setError] = useState(""); const [result, setResult] = useState(null); const [backendUrl, setBackendUrl] = useState(""); const fileInputRef = useRef(null);
const onFileChange = (e) => {61 unmodified lines <input className="border rounded px-2 py-1 text-sm bg-white dark:bg-gray-800 dark:border-gray-700" value={backendUrl} onChange={(e) => setBackendUrl(e.target.value)} /> <ThemeToggle /> const url = `/api/infer?frame_rate=5&max_frames=20`; </div> </div> </header>14 unmodified lines className="hidden" onChange={onFileChange} /> {!videoFile && ( <> <div className="text-5xl">🎥</div> <p className="mt-2 font-medium">Drag & drop your video here</p> <p className="text-sm text-gray-600 dark:text-gray-400">or click to browse (mp4, mov, avi, mkv)</p> </> )} <div className="flex items-center gap-3" /> {videoFile && ( <div className="w-full"> <div className="flex items-center justify-between mb-2">122349 unmodified lines1415161819201718192052 unmodified lines7374757980818283848586878889909192939495767778792 unmodified lines828384104105106107858687import Link from "next/link";import ThemeToggle from "../components/ThemeToggle";
export default function Landing() { return (9 unmodified lines <span className="text-lg font-semibold">Deepfake Detection Console</span> </div> </div> <div className="flex items-center gap-3"> <ThemeToggle /> </div> <div className="flex items-center gap-3" /> </div> </header>
52 unmodified lines </div> </div>
<div className="mt-4 grid grid-cols-5 gap-2 text-[10px] text-emerald-100/80 font-mono"> {[ "Frame sampling", "YOLOv8-face", "Face crops", "ResNet18 logits", "Video verdict", ].map((label, i) => ( <div key={label} className="rounded-lg border border-emerald-700/60 bg-slate-950/80 px-2 py-2 flex flex-col gap-1" > <span className="text-[9px] uppercase tracking-wide text-emerald-500/90">Step {i + 1}</span> <span>{label}</span> </div> ))} </div> {/* Step tiles removed as requested */} </div> </div> </div>2 unmodified lines <section className="max-w-7xl mx-auto px-4 py-12 md:py-16"> <div className="max-w-3xl"> <h2 className="text-xl md:text-2xl font-semibold">How it works</h2> <p className="mt-3 text-sm md:text-base text-emerald-100/75"> The app follows the same steps every time. You can read this top to bottom and match each step to what you see on the analysis page. </p> </div>
<div className="mt-8 space-y-4 text-xs md:text-sm font-mono">frontend/pages/analyze.jsx+2-11
frontend/pages/index.jsx+2-25