jfrery-zama commited on
Commit
c7c27a1
·
unverified ·
1 Parent(s): 6b26070

add disclaimer

Browse files
Files changed (2) hide show
  1. index.html +3 -0
  2. wasm-demo.js +2 -2
index.html CHANGED
@@ -473,6 +473,9 @@ sequenceDiagram
473
  <div class="controls" style="margin-top: auto;">
474
  <button id="btnDecrypt" class="btn" disabled>🔓 Decrypt</button>
475
  </div>
 
 
 
476
  </div>
477
  </section>
478
  </div>
 
473
  <div class="controls" style="margin-top: auto;">
474
  <button id="btnDecrypt" class="btn" disabled>🔓 Decrypt</button>
475
  </div>
476
+ <div class="disclaimer" style="margin-top: calc(var(--spacing-unit) * 3); font-size: 0.9rem; color: var(--black); opacity: 0.7; line-height: 1.5;">
477
+ <p><strong>Note about reliability:</strong> Watermark detection is most reliable with longer texts (100+ tokens). In this demo, we limit input to 16 tokens for performance, which may affect accuracy. Detection improves significantly with 10+ tokens but is less reliable with very short texts.</p>
478
+ </div>
479
  </div>
480
  </section>
481
  </div>
wasm-demo.js CHANGED
@@ -193,8 +193,8 @@ $('tokenInput').addEventListener('input', () => {
193
  if (tokenCount > TOKEN_LIMIT) {
194
  $('encStatus').textContent = `⚠️ ${tokenCount}/${TOKEN_LIMIT} tokens - text too long`;
195
  $('encStatus').style.color = '#d32f2f';
196
- } else if (tokenCount > TOKEN_LIMIT * 0.8) {
197
- $('encStatus').textContent = `${tokenCount}/${TOKEN_LIMIT} tokens`;
198
  $('encStatus').style.color = '#f57c00';
199
  } else {
200
  $('encStatus').textContent = `${tokenCount}/${TOKEN_LIMIT} tokens`;
 
193
  if (tokenCount > TOKEN_LIMIT) {
194
  $('encStatus').textContent = `⚠️ ${tokenCount}/${TOKEN_LIMIT} tokens - text too long`;
195
  $('encStatus').style.color = '#d32f2f';
196
+ } else if (tokenCount < 10) {
197
+ $('encStatus').textContent = `⚠️ ${tokenCount}/${TOKEN_LIMIT} tokens - low reliability`;
198
  $('encStatus').style.color = '#f57c00';
199
  } else {
200
  $('encStatus').textContent = `${tokenCount}/${TOKEN_LIMIT} tokens`;