Spaces:
Running
on
Zero
Running
on
Zero
Update share_btn.py
Browse files- share_btn.py +2 -2
share_btn.py
CHANGED
@@ -48,7 +48,7 @@ share_js = """async () => {
|
|
48 |
const urls = await Promise.all([...imgEls].map((imgEl) => {
|
49 |
const origURL = imgEl.src;
|
50 |
const imgId = Date.now() % 200;
|
51 |
-
const fileName = 'semantic-palette-
|
52 |
return toDataURL(origURL)
|
53 |
.then(dataUrl => {
|
54 |
return dataURLtoFile(dataUrl, fileName);
|
@@ -66,5 +66,5 @@ ${htmlImgs.join(`\n`)}
|
|
66 |
description: descriptionMd,
|
67 |
});
|
68 |
const paramsStr = params.toString();
|
69 |
-
window.open(`https://huggingface.co/spaces/ironjr/
|
70 |
}"""
|
|
|
48 |
const urls = await Promise.all([...imgEls].map((imgEl) => {
|
49 |
const origURL = imgEl.src;
|
50 |
const imgId = Date.now() % 200;
|
51 |
+
const fileName = 'semantic-palette-3-' + imgId + '.png';
|
52 |
return toDataURL(origURL)
|
53 |
.then(dataUrl => {
|
54 |
return dataURLtoFile(dataUrl, fileName);
|
|
|
66 |
description: descriptionMd,
|
67 |
});
|
68 |
const paramsStr = params.toString();
|
69 |
+
window.open(`https://huggingface.co/spaces/ironjr/SemanticPalette3/discussions/new?${paramsStr}`, '_blank');
|
70 |
}"""
|