Spaces:
Running
Running
Deploy cutout to the hub
Browse files- cutout/app.js +2 -2
- cutout/index.html +1 -1
- cutout/og.png +2 -2
- cutout/sw.js +1 -1
cutout/app.js
CHANGED
|
@@ -206,8 +206,8 @@
|
|
| 206 |
});
|
| 207 |
chain.then(function () {
|
| 208 |
var z = C.zip(files);
|
| 209 |
-
save_(new Blob([z], { type: "application/zip" }), "
|
| 210 |
-
status("Saved
|
| 211 |
}, function (e) { status(e.message, true); });
|
| 212 |
});
|
| 213 |
$("btn-clear").addEventListener("click", function () {
|
|
|
|
| 206 |
});
|
| 207 |
chain.then(function () {
|
| 208 |
var z = C.zip(files);
|
| 209 |
+
save_(new Blob([z], { type: "application/zip" }), "snipbare-" + done.length + "-images.zip");
|
| 210 |
+
status("Saved snipbare-" + done.length + "-images.zip (" + C.fmtBytes(z.length) + ").");
|
| 211 |
}, function (e) { status(e.message, true); });
|
| 212 |
});
|
| 213 |
$("btn-clear").addEventListener("click", function () {
|
cutout/index.html
CHANGED
|
@@ -122,5 +122,5 @@
|
|
| 122 |
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
| 123 |
<script src="core.js"></script>
|
| 124 |
<script src="app.js"></script>
|
| 125 |
-
<
|
| 126 |
</html>
|
|
|
|
| 122 |
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
| 123 |
<script src="core.js"></script>
|
| 124 |
<script src="app.js"></script>
|
| 125 |
+
</body>
|
| 126 |
</html>
|
cutout/og.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
cutout/sw.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/* Snipbare offline cache (the AI model itself is cached by transformers.js). © 2026 CyberMax. All rights reserved. */
|
| 2 |
-
var CACHE = "
|
| 3 |
var FILES = ["./", "index.html", "style.css", "cut.css", "core.js", "app.js", "worker.js", "manifest.webmanifest", "icon.svg", "icon-192.png", "icon-512.png"];
|
| 4 |
self.addEventListener("install", function (e) {
|
| 5 |
e.waitUntil(caches.open(CACHE).then(function (c) { return c.addAll(FILES); }).then(function () { return self.skipWaiting(); }));
|
|
|
|
| 1 |
/* Snipbare offline cache (the AI model itself is cached by transformers.js). © 2026 CyberMax. All rights reserved. */
|
| 2 |
+
var CACHE = "snipbare-v2";
|
| 3 |
var FILES = ["./", "index.html", "style.css", "cut.css", "core.js", "app.js", "worker.js", "manifest.webmanifest", "icon.svg", "icon-192.png", "icon-512.png"];
|
| 4 |
self.addEventListener("install", function (e) {
|
| 5 |
e.waitUntil(caches.open(CACHE).then(function (c) { return c.addAll(FILES); }).then(function () { return self.skipWaiting(); }));
|