Update share_btn.py
Browse files- share_btn.py +4 -5
share_btn.py
CHANGED
@@ -35,7 +35,7 @@ share_js = """async () => {
|
|
35 |
return new File([blob], fileName, { type: 'image/jpeg' });
|
36 |
}
|
37 |
}
|
38 |
-
async function
|
39 |
const res = await fetch(audioEL.src);
|
40 |
const blob = await res.blob();
|
41 |
const audioId = Date.now() % 200;
|
@@ -80,10 +80,9 @@ share_js = """async () => {
|
|
80 |
const descriptionMd = `#### Input img:
|
81 |
<img src='${urlInputImg}' style='max-height: 350px;'>
|
82 |
#### Sound Effect:
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
</audio>
|
87 |
`;
|
88 |
const params = new URLSearchParams({
|
89 |
title: titleTxt,
|
|
|
35 |
return new File([blob], fileName, { type: 'image/jpeg' });
|
36 |
}
|
37 |
}
|
38 |
+
async function getOutputSoundFile(audioEL){
|
39 |
const res = await fetch(audioEL.src);
|
40 |
const blob = await res.blob();
|
41 |
const audioId = Date.now() % 200;
|
|
|
80 |
const descriptionMd = `#### Input img:
|
81 |
<img src='${urlInputImg}' style='max-height: 350px;'>
|
82 |
#### Sound Effect:
|
83 |
+
|
84 |
+
${dataOutputSound}
|
85 |
+
|
|
|
86 |
`;
|
87 |
const params = new URLSearchParams({
|
88 |
title: titleTxt,
|