Spaces:
Configuration error
Configuration error
Update share_btn.py
Browse files- share_btn.py +10 -9
share_btn.py
CHANGED
@@ -58,19 +58,20 @@ share_js = """async () => {
|
|
58 |
shareIconEl.style.display = 'none';
|
59 |
loadingIconEl.style.removeProperty('display');
|
60 |
|
61 |
-
const
|
|
|
62 |
|
63 |
const descriptionMd = `Prompt: ${title}
|
64 |
-
|
65 |
-
|
66 |
|
67 |
-
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
|
75 |
const params = new URLSearchParams({
|
76 |
title: title,
|
|
|
58 |
shareIconEl.style.display = 'none';
|
59 |
loadingIconEl.style.removeProperty('display');
|
60 |
|
61 |
+
const videoFile = await getVideoFile(videoEl);
|
62 |
+
const dataVideoFile = await uploadFile(videoFile);
|
63 |
|
64 |
const descriptionMd = `Prompt: ${title}
|
65 |
+
Feel: ${feel}
|
66 |
+
Seed: ${seed}
|
67 |
|
68 |
+
#### Video:
|
69 |
|
70 |
+
<video controls>
|
71 |
+
<source src="${dataVideoFile}" type="video/mp4">
|
72 |
+
Your browser does not support the video element.
|
73 |
+
</video>
|
74 |
+
`;
|
75 |
|
76 |
const params = new URLSearchParams({
|
77 |
title: title,
|