Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
fdc221c
1
Parent(s):
1c46987
Update share_btn.py
Browse files- share_btn.py +2 -2
share_btn.py
CHANGED
@@ -39,8 +39,8 @@ share_js = """async () => {
|
|
39 |
const res = await fetch(imgEl.src);
|
40 |
const blob = await res.blob();
|
41 |
const imgId = Date.now() % 200;
|
42 |
-
const fileName = `diffuse-the-rest-${{imgId}}.
|
43 |
-
return new File([blob], fileName, { type: 'image/
|
44 |
})
|
45 |
);
|
46 |
const urls = await Promise.all(files.map((f) => uploadFile(f)));
|
|
|
39 |
const res = await fetch(imgEl.src);
|
40 |
const blob = await res.blob();
|
41 |
const imgId = Date.now() % 200;
|
42 |
+
const fileName = `diffuse-the-rest-${{imgId}}.jpg`;
|
43 |
+
return new File([blob], fileName, { type: 'image/jpeg' });
|
44 |
})
|
45 |
);
|
46 |
const urls = await Promise.all(files.map((f) => uploadFile(f)));
|