fffiloni commited on
Commit
53936b0
β€’
1 Parent(s): 04d2706

Update share_btn.py

Browse files
Files changed (1) hide show
  1. 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 getOutputMusicFile(audioEL){
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
- <audio controls>
84
- <source src="${dataOutputSound}" type="audio/wav">
85
- Your browser does not support the audio element.
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,