Omnibus commited on
Commit
c12c246
·
1 Parent(s): cc4bfec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -174,11 +174,11 @@ 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').innerText;
178
-
179
  console.log(iframe);
180
  console.log(ifram2);
181
- text_input = Object.fromEntries(iframe2);
182
  console.log(text_input);
183
  return [text_input,iframe];
184
  }
 
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];
184
  }