Omnibus commited on
Commit
0b4fe19
1 Parent(s): 49cbb28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -175,7 +175,7 @@ score_js="""
175
  function(text_input,url_params) {
176
  console.log(text_input, url_params);
177
  const iframe = document.getElementById("myIframe").contentWindow.document.getElementById('my_score');
178
- const iframe2 = document.getElementById("myIframe").contentWindow.document.getElementById('my_score').innerText;
179
  words=iframe2.innerText;
180
  console.log(iframe);
181
  console.log(iframe2);
@@ -183,7 +183,7 @@ function(text_input,url_params) {
183
 
184
  text_input = words;
185
  console.log(text_input);
186
- return [text_input,iframe];
187
  }
188
  """
189
 
 
175
  function(text_input,url_params) {
176
  console.log(text_input, url_params);
177
  const iframe = document.getElementById("myIframe").contentWindow.document.getElementById('my_score');
178
+ const iframe2 = document.getElementById("myIframe").contentWindow.document.getElementById('my_score').innerHTML;
179
  words=iframe2.innerText;
180
  console.log(iframe);
181
  console.log(iframe2);
 
183
 
184
  text_input = words;
185
  console.log(text_input);
186
+ return [iframe,iframe];
187
  }
188
  """
189