DGSpitzer commited on
Commit
014ffb8
1 Parent(s): 574b700

Update share_btn.py

Browse files
Files changed (1) hide show
  1. 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').placeholder;
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
  }