fffiloni commited on
Commit
2c29b76
β€’
1 Parent(s): 2fbdbc0

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +4 -0
share_btn.py CHANGED
@@ -80,6 +80,10 @@ ${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');
 
80
  #### Sound Effect:
81
  ${dataOutputSound}
82
  `;
83
+ const params = new URLSearchParams({
84
+ title: captionTxt,
85
+ description: descriptionMd,
86
+ });
87
  const paramsStr = params.toString();
88
  window.open(`https://huggingface.co/spaces/fffiloni/image-to-sound-fx/discussions/new?${paramsStr}`, '_blank');
89
  shareBtnEl.style.removeProperty('pointer-events');