Spaces:
Running on Zero
Running on Zero
Download static/index.html from prathvi9607/loki: direct link, hf CLI and curl.
- Browser
- Download file 14.2 kB
-
https://huggingface.co/spaces/prathvi9607/loki/resolve/main/static/index.html
- Command line
-
hf download hf://spaces/prathvi9607/loki/static/index.html
-
curl -L -o index.html https://huggingface.co/spaces/prathvi9607/loki/resolve/main/static/index.html
14.2 kB
| <html lang="en" class="DY8Jpa_variable OpYtmG_variable _kMyQa_variable antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/4a0b7dd978568ff2-s.p.3fofz6dws3mg0.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/53897e768d329f66-s.p.3t6q91iet4nsy.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/d902bc2bfdd0a4cb-s.p.1g73gv09-xcb6.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/e63b65bb308a9351-s.p.3j3877k49yy0l.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/chunks/0_shv3oxa9b78.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1scc1ka28eb3l.js"/><script src="/_next/static/chunks/41hmg2-rsh9zy.js" async=""></script><script src="/_next/static/chunks/1_wi4wc78t9h_.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><script src="/_next/static/chunks/2xjtzy-pgb6pm.js" async=""></script><script src="/_next/static/chunks/3e9c80xq-4v88.js" async=""></script><meta name="next-size-adjust" content=""/><title>Loki — fake news classifier</title><meta name="description" content="Score an article or pasted text with four language models and cross-check its source."/><link rel="icon" href="/favicon.ico?favicon.117ezoe8m31dk.ico" sizes="48x48" type="image/x-icon"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","dark",null,["light","dark"],null,false,true)</script><div class="mx-auto flex min-h-dvh max-w-5xl flex-col px-5 py-6 sm:px-8"><header class="border-b border-ink pb-6"><div class="flex items-center justify-between border-b border-rule pb-3"><span class="label">Fake-news classifier</span><button type="button" aria-label="Toggle light and dark theme" class="grid size-9 place-items-center border border-rule text-muted transition-colors hover:text-ink"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sun size-4 dark:hidden" aria-hidden="true"><circle cx="12" cy="12" r="4"></circle><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="m4.93 4.93 1.41 1.41"></path><path d="m17.66 17.66 1.41 1.41"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="m6.34 17.66-1.41 1.41"></path><path d="m19.07 4.93-1.41 1.41"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon hidden size-4 dark:block" aria-hidden="true"><path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"></path></svg></button></div><div class="grid gap-8 pt-8 grid-cols-[minmax(0,1fr)] md:grid-cols-[minmax(0,1fr)_auto] md:items-end"><div><h1 class="font-serif text-7xl leading-[0.9] tracking-tight sm:text-8xl">Loki</h1><p class="mt-4 max-w-xl text-lg leading-snug text-muted">Paste an article or a link. Four fine-tuned transformers vote on whether it reads as fake, and the source is checked against known lists.</p></div><ul class="flex flex-wrap gap-x-5 gap-y-2 md:max-w-xs md:flex-col md:gap-y-2" aria-label="Model status"><li class="label">Loading models…</li></ul></div></header><main class="flex-1 py-12"><div class="mx-auto max-w-3xl"><form><div role="tablist" aria-label="Input type" class="flex gap-6 border-b border-rule"><button type="button" role="tab" id="_R_cpbtb_-tab-url" aria-selected="true" aria-controls="_R_cpbtb_-panel" class="relative pb-3 font-mono text-xs uppercase tracking-[0.12em] transition-colors text-ink">Article URL<span class="absolute inset-x-0 -bottom-px h-0.5 bg-ink"></span></button><button type="button" role="tab" id="_R_cpbtb_-tab-text" aria-selected="false" aria-controls="_R_cpbtb_-panel" class="relative pb-3 font-mono text-xs uppercase tracking-[0.12em] transition-colors text-muted hover:text-ink">Paste text</button></div><div role="tabpanel" id="_R_cpbtb_-panel" aria-labelledby="_R_cpbtb_-tab-url" class="pt-5"><input type="url" placeholder="https://example.com/news/story" aria-label="Article URL" autoComplete="off" spellCheck="false" class="w-full border border-rule bg-surface px-4 py-3.5 font-mono text-sm outline-none placeholder:text-muted focus:border-ink" value=""/></div><div class="mt-5 flex flex-wrap items-center justify-between gap-x-6 gap-y-4"><div class="flex flex-wrap items-center gap-2"><span class="label mr-1">Try</span><button type="button" class="border border-rule px-3 py-1.5 font-mono text-xs text-muted transition-colors hover:border-ink hover:text-ink">bbc.com/news</button><button type="button" class="border border-rule px-3 py-1.5 font-mono text-xs text-muted transition-colors hover:border-ink hover:text-ink">Miracle cure</button><button type="button" class="border border-rule px-3 py-1.5 font-mono text-xs text-muted transition-colors hover:border-ink hover:text-ink">Rate decision</button></div><button type="submit" disabled="" class="inline-flex items-center gap-2 bg-ink px-6 py-3 text-sm font-medium text-paper transition-opacity disabled:opacity-40">Analyze<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right size-4" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></button></div></form><div aria-live="assertive"></div></div><div class="mt-24"><section aria-labelledby="how" class="border-t border-ink pt-4"><h2 id="how" class="label !text-ink">How it works</h2><ol class="mt-8 grid gap-x-8 gap-y-10 sm:grid-cols-2 lg:grid-cols-4"><li class="border-t border-rule pt-4"><span class="font-mono text-xs text-muted">01</span><h3 class="mt-3 font-serif text-3xl leading-none">Extract</h3><p class="mt-3 text-sm leading-relaxed text-muted">For a URL, the article title, authors, date and body text are pulled from the page. Pasted text skips this step.</p></li><li class="border-t border-rule pt-4"><span class="font-mono text-xs text-muted">02</span><h3 class="mt-3 font-serif text-3xl leading-none">Score</h3><p class="mt-3 text-sm leading-relaxed text-muted">Four fine-tuned transformer models from the Hugging Face Hub each estimate the probability that the text is fake.</p></li><li class="border-t border-rule pt-4"><span class="font-mono text-xs text-muted">03</span><h3 class="mt-3 font-serif text-3xl leading-none">Average</h3><p class="mt-3 text-sm leading-relaxed text-muted">The four probabilities are averaged. Above 50% reads as fake; confidence is the distance from that line.</p></li><li class="border-t border-rule pt-4"><span class="font-mono text-xs text-muted">04</span><h3 class="mt-3 font-serif text-3xl leading-none">Cross-check</h3><p class="mt-3 text-sm leading-relaxed text-muted">In parallel, the domain is looked up in two lists of known fake-news sources and scanned with VirusTotal.</p></li></ol></section></div></main><footer class="flex flex-wrap justify-between gap-2 border-t border-rule pt-4 label"><span>Loki</span><span>Output is a statistical estimate, not a ruling.</span></footer></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/1scc1ka28eb3l.js","static/chunks/41hmg2-rsh9zy.js","static/chunks/1_wi4wc78t9h_.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/1scc1ka28eb3l.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2xjtzy-pgb6pm.js\"\n3:I[63178,[\"$2\"],\"ThemeProvider\"]\n4:I[63209,[\"$2\"],\"MotionConfig\"]\n5:I[39756,[\"$2\"],\"default\"]\n6:I[37457,[\"$2\"],\"default\"]\n8:I[47257,[\"$2\"],\"ClientPageRoot\"]\n9:\"/_next/static/chunks/3e9c80xq-4v88.js\"\na:I[52683,[\"$2\",\"$9\"],\"default\"]\nd:I[97367,[\"$2\"],\"OutletBoundary\"]\ne:\"$Sreact.suspense\"\n10:\"ViewportBoundary\"\n11:I[97367,[\"$2\"],\"$10\"]\n13:\"MetadataBoundary\"\n14:I[97367,[\"$2\"],\"$13\"]\n16:I[68027,[\"$2\"],\"default\",1]\n:HL[\"/_next/static/chunks/0_shv3oxa9b78.css\",\"style\"]\n:HL[\"/_next/static/media/4a0b7dd978568ff2-s.p.3fofz6dws3mg0.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/53897e768d329f66-s.p.3t6q91iet4nsy.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/d902bc2bfdd0a4cb-s.p.1g73gv09-xcb6.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/e63b65bb308a9351-s.p.3j3877k49yy0l.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n7:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L8\",null,{\"Component\":\"$a\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@b\",\"$@c\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3e9c80xq-4v88.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@f\"}]}]]}],\"p\":false,\"v\":null}}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0_shv3oxa9b78.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2xjtzy-pgb6pm.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"DY8Jpa_variable OpYtmG_variable _kMyQa_variable antialiased\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"enableSystem\":false,\"disableTransitionOnChange\":true,\"children\":[\"$\",\"$L4\",null,{\"reducedMotion\":\"user\",\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q7\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"$L14\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$16\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0_shv3oxa9b78.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"N1fl7wlydOXe6Jl6Xchwi\"}\n"])</script><script>self.__next_f.push([1,"b:{}\nc:\"$7:0:1:d:r:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"17:I[27201,[\"$2\"],\"IconMark\"]\nf:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"Loki — fake news classifier\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Score an article or pasted text with four language models and cross-check its source.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.117ezoe8m31dk.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"$L17\",\"3\",{}]]\n"])</script></body></html> |