jclyo1 commited on
Commit
1d4275f
1 Parent(s): 8870576
Files changed (2) hide show
  1. static/index.html +26 -7
  2. static/script.js +4 -0
static/index.html CHANGED
@@ -43,7 +43,7 @@
43
  <div class="badge bg-secondary">experimental</div>
44
  </h1>
45
  <p>
46
- Generate images with C2PA content credentials and Steg.ai
47
  digital watermarking for enhanced AI label robustness
48
  </p>
49
 
@@ -54,7 +54,7 @@
54
  above
55
  </p>
56
  <p>
57
- <img src="images/wave_icon.svg" /> Joining the conversation in
58
  the Community tab
59
  </p>
60
  </div>
@@ -109,7 +109,7 @@
109
  >
110
  </p>
111
  <p class="mb-0">
112
- Use the verify tab two view the details for an image you
113
  have or that's been shared with you.
114
  </p>
115
  </div>
@@ -296,7 +296,7 @@
296
  >Truepic</a
297
  >
298
  and
299
- <a href="https://steg.ai/tos.html" target="_blank">Steg.ai</a>
300
  </label>
301
  </div>
302
 
@@ -319,7 +319,7 @@
319
  <p>
320
  When an image is generated and signed with C2PA Content
321
  Credentials, an imperceptible digital watermark, powered by
322
- Steg.ai, is also added to the image pixels. The watermark
323
  serves as a backup in case the Content Credentials are lost,
324
  such as when sharing the image between currently incompatible
325
  services like text messaging. By using the watermark, it is
@@ -327,6 +327,15 @@
327
  from before the data was decoupled, which you can try in the
328
  verify tab.
329
  </p>
 
 
 
 
 
 
 
 
 
330
  </div>
331
  </div>
332
  <div class="display-verify">
@@ -339,6 +348,7 @@
339
  class="form-control"
340
  name="fileUpload"
341
  id="fileUpload"
 
342
  />
343
  </div>
344
 
@@ -357,7 +367,7 @@
357
  >Truepic</a
358
  >
359
  and
360
- <a href="https://steg.ai/tos.html" target="_blank">Steg.ai</a>
361
  </label>
362
  </div>
363
 
@@ -379,7 +389,7 @@
379
  <p>
380
  When an image is generated and signed with C2PA Content
381
  Credentials, an imperceptible digital watermark, powered by
382
- Steg.ai, is also added to the image pixels. The watermark
383
  serves as a backup in case the Content Credentials are lost,
384
  such as when sharing the image between currently incompatible
385
  services like text messaging. By using the watermark, it is
@@ -387,6 +397,15 @@
387
  from before the data was decoupled, which you can try in the
388
  verify tab.
389
  </p>
 
 
 
 
 
 
 
 
 
390
  </div>
391
  </div>
392
  </div>
 
43
  <div class="badge bg-secondary">experimental</div>
44
  </h1>
45
  <p>
46
+ Generate images with C2PA content credentials and Steg.AI
47
  digital watermarking for enhanced AI label robustness
48
  </p>
49
 
 
54
  above
55
  </p>
56
  <p>
57
+ <img src="images/wave_icon.svg" /> Join the conversation in
58
  the Community tab
59
  </p>
60
  </div>
 
109
  >
110
  </p>
111
  <p class="mb-0">
112
+ Use the verify tab to view the details for an image you
113
  have or that's been shared with you.
114
  </p>
115
  </div>
 
296
  >Truepic</a
297
  >
298
  and
299
+ <a href="https://steg.ai/tos.html" target="_blank">Steg.AI</a>
300
  </label>
301
  </div>
302
 
 
319
  <p>
320
  When an image is generated and signed with C2PA Content
321
  Credentials, an imperceptible digital watermark, powered by
322
+ Steg.AI, is also added to the image pixels. The watermark
323
  serves as a backup in case the Content Credentials are lost,
324
  such as when sharing the image between currently incompatible
325
  services like text messaging. By using the watermark, it is
 
327
  from before the data was decoupled, which you can try in the
328
  verify tab.
329
  </p>
330
+
331
+ <p>
332
+ Want to know more? Read our
333
+ <a
334
+ href="https://huggingface.co/blog/alicia-truepic/identify-ai-generated-content"
335
+ target="_blank"
336
+ >community blog post</a
337
+ >.
338
+ </p>
339
  </div>
340
  </div>
341
  <div class="display-verify">
 
348
  class="form-control"
349
  name="fileUpload"
350
  id="fileUpload"
351
+ accept="image/png, image/jpeg"
352
  />
353
  </div>
354
 
 
367
  >Truepic</a
368
  >
369
  and
370
+ <a href="https://steg.ai/tos.html" target="_blank">Steg.AI</a>
371
  </label>
372
  </div>
373
 
 
389
  <p>
390
  When an image is generated and signed with C2PA Content
391
  Credentials, an imperceptible digital watermark, powered by
392
+ Steg.AI, is also added to the image pixels. The watermark
393
  serves as a backup in case the Content Credentials are lost,
394
  such as when sharing the image between currently incompatible
395
  services like text messaging. By using the watermark, it is
 
397
  from before the data was decoupled, which you can try in the
398
  verify tab.
399
  </p>
400
+
401
+ <p>
402
+ Want to know more? Read our
403
+ <a
404
+ href="https://huggingface.co/blog/alicia-truepic/identify-ai-generated-content"
405
+ target="_blank"
406
+ >community blog post</a
407
+ >.
408
+ </p>
409
  </div>
410
  </div>
411
  </div>
static/script.js CHANGED
@@ -115,6 +115,8 @@ function submitForm() {
115
  .setAttribute("src", fileReader.result);
116
  };
117
 
 
 
118
  document.querySelector(".display-verify .error").style.display = "none";
119
  placeholder = document.querySelector(".display-verify .placeholder");
120
  spinner = document.querySelector(".display-verify .spinner");
@@ -213,6 +215,8 @@ function submitFormData(formData) {
213
  verifyImageContainer.appendChild(truepicDisplay);
214
 
215
  outputContainer.style.display = "block";
 
 
216
  }
217
  // Handle response data
218
  })
 
115
  .setAttribute("src", fileReader.result);
116
  };
117
 
118
+ verifyImageContainer.style.display = "flex";
119
+
120
  document.querySelector(".display-verify .error").style.display = "none";
121
  placeholder = document.querySelector(".display-verify .placeholder");
122
  spinner = document.querySelector(".display-verify .spinner");
 
215
  verifyImageContainer.appendChild(truepicDisplay);
216
 
217
  outputContainer.style.display = "block";
218
+ } else {
219
+ verifyImageContainer.style.display = "none";
220
  }
221
  // Handle response data
222
  })