Sylvain Filoni commited on
Commit
2dfc65f
1 Parent(s): b95bff2

wrong textarea value

Browse files
Files changed (1) hide show
  1. share_btn.py +1 -1
share_btn.py CHANGED
@@ -56,7 +56,7 @@ share_js = """async () => {
56
  }
57
  const gradioEl = document.querySelector('body > gradio-app');
58
  // const gradioEl = document.querySelector("gradio-app").shadowRoot;
59
- const inputPromptEl = gradioEl.querySelector('#prompt-in textarea');
60
  const outputImgEl = gradioEl.querySelector('#img-out img');
61
  const outputMusic = gradioEl.querySelector('#music-out audio');
62
  const outputMusic_src = gradioEl.querySelector('#music-out audio').src;
 
56
  }
57
  const gradioEl = document.querySelector('body > gradio-app');
58
  // const gradioEl = document.querySelector("gradio-app").shadowRoot;
59
+ const inputPromptEl = gradioEl.querySelector('#prompt-in').value;
60
  const outputImgEl = gradioEl.querySelector('#img-out img');
61
  const outputMusic = gradioEl.querySelector('#music-out audio');
62
  const outputMusic_src = gradioEl.querySelector('#music-out audio').src;