Spaces:
Runtime error
Runtime error
Update share_btn.py
Browse files- share_btn.py +1 -1
share_btn.py
CHANGED
@@ -42,7 +42,7 @@ share_js = """async () => {
|
|
42 |
//const outputImg_name = outputImg_src.split('/').pop();
|
43 |
//let titleTxt = outputImg_name;
|
44 |
|
45 |
-
let titleTxt = gradioEl.querySelector('#input-prompt > label > textarea').
|
46 |
if(titleTxt.length > 100){
|
47 |
titleTxt = titleTxt.slice(0, 100) + ' ...';
|
48 |
}
|
|
|
42 |
//const outputImg_name = outputImg_src.split('/').pop();
|
43 |
//let titleTxt = outputImg_name;
|
44 |
|
45 |
+
let titleTxt = gradioEl.querySelector('#input-prompt > label > textarea').value;
|
46 |
if(titleTxt.length > 100){
|
47 |
titleTxt = titleTxt.slice(0, 100) + ' ...';
|
48 |
}
|