ironjr commited on
Commit
0ad0e92
1 Parent(s): f64f0cd

Update share_btn.py

Browse files
Files changed (1) hide show
  1. 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-xl-' + imgId + '.png';
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/SemanticPaletteXL/discussions/new?${paramsStr}`, '_blank');
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
  }"""