Omnibus commited on
Commit
b59879c
1 Parent(s): 499ce6b

Update app.py

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