fffiloni commited on
Commit
65f5f0d
·
1 Parent(s): c7bb9a8

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +3 -2
share_btn.py CHANGED
@@ -36,9 +36,10 @@ share_js = """async () => {
36
 
37
  }
38
 
39
- const gradioEl = document.querySelector('body > gradio-app');
 
40
 
41
- //const whisper_input = gradioEl.querySelector('#text_inp > textarea').value;
42
 
43
  const outputVideo = gradioEl.querySelector('#video_out video');
44
  const outputVideo_src = gradioEl.querySelector('#video_out video').src;
 
36
 
37
  }
38
 
39
+ //const gradioEl = document.querySelector('body > gradio-app');
40
+ const gradioEl = document.querySelector("gradio-app").shadowRoot;
41
 
42
+ //const whisper_input = gradioEl.querySelector('#text_inp textarea').value;
43
 
44
  const outputVideo = gradioEl.querySelector('#video_out video');
45
  const outputVideo_src = gradioEl.querySelector('#video_out video').src;