Spaces:
Running
Running
improve wording
Browse files- index.html +28 -5
- wasm-demo.js +2 -2
index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<head>
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
6 |
-
<title>Private AI Text
|
7 |
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
8 |
|
9 |
<style>
|
@@ -395,10 +395,33 @@
|
|
395 |
<!-- Hero -->
|
396 |
<header class="hero" role="banner">
|
397 |
<div class="hero-copy">
|
398 |
-
<h1>Private AI Text Detection</h1>
|
399 |
-
|
400 |
-
|
401 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
</div>
|
403 |
</header>
|
404 |
|
|
|
3 |
<head>
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
6 |
+
<title>Private AI Generated Text Detection</title>
|
7 |
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
8 |
|
9 |
<style>
|
|
|
395 |
<!-- Hero -->
|
396 |
<header class="hero" role="banner">
|
397 |
<div class="hero-copy">
|
398 |
+
<h1>Private AI Generated Text Detection</h1>
|
399 |
+
|
400 |
+
<!-- 1 β Why it matters -->
|
401 |
+
<p class="explanation-text">
|
402 |
+
AI models can embed an invisible <strong>watermark</strong> β a tiny cryptographic
|
403 |
+
signature hidden in the text β that proves the text came from them.
|
404 |
+
This demo shows you can <em>detect</em> such a watermark
|
405 |
+
while your words stay fully encrypted in your browser, thanks to
|
406 |
+
<a href="https://www.zama.ai/" target="_blank">Fully Homomorphic Encryption (FHE)</a>.
|
407 |
+
</p>
|
408 |
+
|
409 |
+
<!-- 2 β How it works in plain English -->
|
410 |
+
<p class="explanation-text">
|
411 |
+
β’ Your text is encrypted locally.<br>
|
412 |
+
β’ Our server runs a watermark detector on the ciphertext.<br>
|
413 |
+
β’ Because of FHE, the server never sees the plaintext. Neither does it learn whether you text is
|
414 |
+
"watermarked" or "not watermarked."
|
415 |
+
</p>
|
416 |
+
|
417 |
+
<!-- 3 β Scope of the demo -->
|
418 |
+
<p class="explanation-text">
|
419 |
+
In this prototype we look for the
|
420 |
+
<a href="https://deepmind.google/science/synthid/" target="_blank">Google SynthID</a> watermark
|
421 |
+
as a real-world example.
|
422 |
+
<strong>No watermark</strong> simply means "no SynthID detected" β the text
|
423 |
+
might still be human-written or AI-generated without that specific mark.
|
424 |
+
</p>
|
425 |
</div>
|
426 |
</header>
|
427 |
|
wasm-demo.js
CHANGED
@@ -505,10 +505,10 @@ $('btnDecrypt').onclick = () => {
|
|
505 |
let resultText, resultClass;
|
506 |
|
507 |
if (Number(flag) === 1) {
|
508 |
-
resultText = 'β
|
509 |
resultClass = 'watermarked';
|
510 |
} else {
|
511 |
-
resultText = '
|
512 |
resultClass = 'inconclusive';
|
513 |
}
|
514 |
|
|
|
505 |
let resultText, resultClass;
|
506 |
|
507 |
if (Number(flag) === 1) {
|
508 |
+
resultText = 'β
Text is watermarked';
|
509 |
resultClass = 'watermarked';
|
510 |
} else {
|
511 |
+
resultText = 'β Text is not watermarked';
|
512 |
resultClass = 'inconclusive';
|
513 |
}
|
514 |
|