Update share_btn.py
Browse files- share_btn.py +1 -1
share_btn.py
CHANGED
@@ -57,7 +57,7 @@ share_js = """async () => {
|
|
57 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
58 |
const inputImgEl = gradioEl.querySelector('#input-img img');
|
59 |
const outputSound = gradioEl.querySelector('#sound-output video');
|
60 |
-
const outputSound_src = gradioEl.querySelector('#sound-output
|
61 |
const outputSound_name = outputSound_src.split('/').pop();
|
62 |
let titleTxt = outputMusic_name;
|
63 |
//if(titleTxt.length > 100){
|
|
|
57 |
const gradioEl = document.querySelector("gradio-app").shadowRoot || document.querySelector('body > gradio-app');
|
58 |
const inputImgEl = gradioEl.querySelector('#input-img img');
|
59 |
const outputSound = gradioEl.querySelector('#sound-output video');
|
60 |
+
const outputSound_src = gradioEl.querySelector('#sound-output video').src;
|
61 |
const outputSound_name = outputSound_src.split('/').pop();
|
62 |
let titleTxt = outputMusic_name;
|
63 |
//if(titleTxt.length > 100){
|