Spaces:
Running
on
A10G
Running
on
A10G
Share btn to preview
Browse files- 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');
|