Spaces:
Paused
Paused
Update share_btn.py
Browse files- share_btn.py +4 -4
share_btn.py
CHANGED
@@ -60,10 +60,10 @@ share_js = """async () => {
|
|
60 |
const outputMusic = gradioEl.querySelector('#music-output audio');
|
61 |
const outputMusic_src = gradioEl.querySelector('#music-output audio').src;
|
62 |
const outputMusic_name = outputMusic_src.split('/').pop();
|
63 |
-
let titleTxt = outputMusic_name;
|
64 |
-
if(titleTxt.length > 100){
|
65 |
-
|
66 |
-
}
|
67 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|
68 |
const shareIconEl = gradioEl.querySelector('#share-btn-share-icon');
|
69 |
const loadingIconEl = gradioEl.querySelector('#share-btn-loading-icon');
|
|
|
60 |
const outputMusic = gradioEl.querySelector('#music-output audio');
|
61 |
const outputMusic_src = gradioEl.querySelector('#music-output audio').src;
|
62 |
const outputMusic_name = outputMusic_src.split('/').pop();
|
63 |
+
let titleTxt = outputMusic_name + ' *Do not forget to name your combo with a great title :) ';
|
64 |
+
//if(titleTxt.length > 100){
|
65 |
+
// titleTxt = titleTxt.slice(0, 100) + ' ...';
|
66 |
+
//}
|
67 |
const shareBtnEl = gradioEl.querySelector('#share-btn');
|
68 |
const shareIconEl = gradioEl.querySelector('#share-btn-share-icon');
|
69 |
const loadingIconEl = gradioEl.querySelector('#share-btn-loading-icon');
|