Omnibus commited on
Commit
90692ee
·
1 Parent(s): 160c65d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -174,10 +174,13 @@ 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
  console.log(iframe);
178
- text_input = Object.fromEntries(url_params);
 
179
  console.log(text_input);
180
- return [iframe,iframe];
181
  }
182
  """
183
 
 
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').innerHTML;
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
  }
185
  """
186