Spaces:
Runtime error
Runtime error
Update share_btn.py
Browse files- share_btn.py +1 -1
share_btn.py
CHANGED
@@ -38,7 +38,7 @@ share_js = """async () => {
|
|
38 |
const res = await fetch(imgEl.src);
|
39 |
const blob = await res.blob();
|
40 |
const imgId = Date.now() % 200;
|
41 |
-
const fileName = `
|
42 |
return new File([blob], fileName, { type: 'image/jpeg' });
|
43 |
})
|
44 |
);
|
|
|
38 |
const res = await fetch(imgEl.src);
|
39 |
const blob = await res.blob();
|
40 |
const imgId = Date.now() % 200;
|
41 |
+
const fileName = `semantic-palette-xl-${{imgId}}.jpg`;
|
42 |
return new File([blob], fileName, { type: 'image/jpeg' });
|
43 |
})
|
44 |
);
|