fffiloni commited on
Commit
6824e70
β€’
1 Parent(s): 60b0252

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +4 -9
share_btn.py CHANGED
@@ -74,17 +74,12 @@ share_js = """async () => {
74
  const soundFile = await getOutputSoundFile(outputSound);
75
  const dataOutputSound = await uploadFile(soundFile);
76
 
77
- const descriptionMd = `#### Input img:
78
- <img src='${urlInputImg}' style='max-height: 350px;'>
 
79
  #### Sound Effect:
80
-
81
- ${dataOutputSound}
82
-
83
  `;
84
- const params = new URLSearchParams({
85
- title: captionTxt,
86
- description: descriptionMd,
87
- });
88
  const paramsStr = params.toString();
89
  window.open(`https://huggingface.co/spaces/fffiloni/image-to-sound-fx/discussions/new?${paramsStr}`, '_blank');
90
  shareBtnEl.style.removeProperty('pointer-events');
 
74
  const soundFile = await getOutputSoundFile(outputSound);
75
  const dataOutputSound = await uploadFile(soundFile);
76
 
77
+ const descriptionMd = `
78
+ #### Image input:
79
+ ${urlInputImg}
80
  #### Sound Effect:
81
+ ${dataOutputSound}
 
 
82
  `;
 
 
 
 
83
  const paramsStr = params.toString();
84
  window.open(`https://huggingface.co/spaces/fffiloni/image-to-sound-fx/discussions/new?${paramsStr}`, '_blank');
85
  shareBtnEl.style.removeProperty('pointer-events');