Spaces:
Running
on
A10G
Running
on
A10G
Commit
•
db4fd47
1
Parent(s):
87964c6
Share btn to preview (#15)
Browse files- Share btn to preview (44031700f2a127e019d8ccb20bea860f37f5b6f4)
Co-authored-by: Mishig Davaadorj <[email protected]>
- 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');
|