mishig HF staff commited on
Commit
4403170
1 Parent(s): 87964c6

Share btn to preview

Browse files
Files changed (1) hide show
  1. share_btn.py +1 -0
share_btn.py CHANGED
@@ -100,6 +100,7 @@ share_js = r"""async () => {
100
  const params = new URLSearchParams({
101
  title: title,
102
  description: descriptionMd,
 
103
  });
104
  const paramsStr = params.toString();
105
  window.open(`https://huggingface.co/spaces/editing-images/ledits/discussions/new?${paramsStr}`, '_blank');
 
100
  const params = new URLSearchParams({
101
  title: title,
102
  description: descriptionMd,
103
+ preview: true,
104
  });
105
  const paramsStr = params.toString();
106
  window.open(`https://huggingface.co/spaces/editing-images/ledits/discussions/new?${paramsStr}`, '_blank');