Spaces:
Running
on
T4
Running
on
T4
Sylvain Filoni
commited on
Commit
•
1aeda83
1
Parent(s):
bebe771
update share_btn.py
Browse files- 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 = `
|
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/
|
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 = `spectro-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/fffiloni/spectrogram-to-music/discussions/new?${paramsStr}`, '_blank');
|
98 |
shareBtnEl.style.removeProperty('pointer-events');
|
99 |
shareIconEl.style.removeProperty('display');
|
100 |
loadingIconEl.style.display = 'none';
|