nightfury commited on
Commit
5c3e599
1 Parent(s): 98f364d

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +2 -2
share_btn.py CHANGED
@@ -39,7 +39,7 @@ share_js = """async () => {
39
  const res = await fetch(audioEL.src);
40
  const blob = await res.blob();
41
  const audioId = Date.now() % 200;
42
- const fileName = `spectro-music-${{audioId}}.wav`;
43
  const musicBlob = new File([blob], fileName, { type: 'audio/wav' });
44
  console.log(musicBlob);
45
  return musicBlob;
@@ -94,7 +94,7 @@ Your browser does not support the audio element.
94
  description: descriptionMd,
95
  });
96
  const paramsStr = params.toString();
97
- window.open(`https://huggingface.co/spaces/fffiloni/spectrogram-to-music/discussions/new?${paramsStr}`, '_blank');
98
  shareBtnEl.style.removeProperty('pointer-events');
99
  shareIconEl.style.removeProperty('display');
100
  loadingIconEl.style.display = 'none';
 
39
  const res = await fetch(audioEL.src);
40
  const blob = await res.blob();
41
  const audioId = Date.now() % 200;
42
+ const fileName = `riffusion-music-${{audioId}}.wav`;
43
  const musicBlob = new File([blob], fileName, { type: 'audio/wav' });
44
  console.log(musicBlob);
45
  return musicBlob;
 
94
  description: descriptionMd,
95
  });
96
  const paramsStr = params.toString();
97
+ window.open(`https://huggingface.co/spaces/nightfury/Riffusion_real-time_image-to-music_generation/discussions/new?${paramsStr}`, '_blank');
98
  shareBtnEl.style.removeProperty('pointer-events');
99
  shareIconEl.style.removeProperty('display');
100
  loadingIconEl.style.display = 'none';