Omnibus commited on
Commit
487c741
1 Parent(s): 5b618f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -176,8 +176,11 @@ score_js="""
176
  function(text_input,url_params) {
177
  console.log(text_input, url_params);
178
  const iframe = document.getElementById("myIframe");
179
- const elmnt = iframe.contentWindow.document.getElementsByTagName("H1")[0];
180
- text_input = Object.fromEntries(elmnt);
 
 
 
181
  return [text_input,url_params];
182
  }
183
  """
 
176
  function(text_input,url_params) {
177
  console.log(text_input, url_params);
178
  const iframe = document.getElementById("myIframe");
179
+ const nameResult = iframe.getElementById("name-result");
180
+ nameResult.textContent = score;
181
+ console.log(nameResult);
182
+ text_input = Object.fromEntries(nameResult);
183
+ console.log(text_input);
184
  return [text_input,url_params];
185
  }
186
  """