mishig HF staff commited on
Commit
e8da6e1
1 Parent(s): 8fe4b23

shread image type png -> jpg

Browse files
Files changed (1) hide show
  1. share_btn.py +2 -2
share_btn.py CHANGED
@@ -44,8 +44,8 @@ share_js = """async () => {
44
  const res = await fetch(imgEl.src);
45
  const blob = await res.blob();
46
  const imgId = Date.now() % 200;
47
- const fileName = `diffuse-the-rest-${{imgId}}.png`;
48
- return new File([blob], fileName, { type: 'image/png' });
49
  })
50
  );
51
 
 
44
  const res = await fetch(imgEl.src);
45
  const blob = await res.blob();
46
  const imgId = Date.now() % 200;
47
+ const fileName = `sd-perception-${{imgId}}.jpg`;
48
+ return new File([blob], fileName, { type: 'image/jpeg' });
49
  })
50
  );
51