Omnibus commited on
Commit
50990a9
1 Parent(s): c12c246

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -174,10 +174,12 @@ score_js="""
174
  function(text_input,url_params) {
175
  console.log(text_input, url_params);
176
  const iframe = document.getElementById("myIframe").contentWindow.document.getElementById('my_score');
177
- const iframe2 = document.getElementById("myIframe").contentWindow.document.getElementById('my_score');
178
- words=iframe2.innerHTML;
179
  console.log(iframe);
180
- console.log(ifram2);
 
 
181
  text_input = words;
182
  console.log(text_input);
183
  return [text_input,iframe];
 
174
  function(text_input,url_params) {
175
  console.log(text_input, url_params);
176
  const iframe = document.getElementById("myIframe").contentWindow.document.getElementById('my_score');
177
+ const iframe2 = document.getElementById("myIframe").contentWindow.document.getElementById('my_score').innerText;
178
+ words=iframe2.innerText;
179
  console.log(iframe);
180
+ console.log(iframe2);
181
+ console.log(words);
182
+
183
  text_input = words;
184
  console.log(text_input);
185
  return [text_input,iframe];