Removed some texts and unused components
Browse filesFiles changed (2)
123452 unmodified lines89101112131461 unmodified lines76777879808182838414 unmodified lines99100101102103104105106107108109110111import { useEffect, useRef, useState } from "react";import ThemeToggle from "../components/ThemeToggle";import FrameGrid from "../components/FrameGrid";export default function Analyze() {2 unmodified linesconst [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<inputclassName="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 /></div></div></header>14 unmodified linesclassName="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></>)}{videoFile && (<div className="w-full"><div className="flex items-center justify-between mb-2">12342 unmodified lines78910111261 unmodified lines747576777879808114 unmodified lines96979899100101102import { useEffect, useRef, useState } from "react";import FrameGrid from "../components/FrameGrid";export default function Analyze() {2 unmodified linesconst [loading, setLoading] = useState(false);const [error, setError] = useState("");const [result, setResult] = useState(null);const fileInputRef = useRef(null);const onFileChange = (e) => {61 unmodified lines<inputclassName="border rounded px-2 py-1 text-sm bg-white dark:bg-gray-800 dark:border-gray-700"value={backendUrl}/>const url = `/api/infer?frame_rate=5&max_frames=20`;</div></div></header>14 unmodified linesclassName="hidden"onChange={onFileChange}/><div className="flex items-center gap-3" />{videoFile && (<div className="w-full"><div className="flex items-center justify-between mb-2">
123459 unmodified lines15161718192021222352 unmodified lines76777879808182838485868788899091929394959697982 unmodified lines101102103104105106107108109110import 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></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) => (<divkey={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></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 matcheach 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">12349 unmodified lines1415161718192052 unmodified lines737475767778792 unmodified lines828384858687import Link from "next/link";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" /></div></header>52 unmodified lines</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></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