Update app.py
Browse files
app.py
CHANGED
@@ -174,10 +174,12 @@ 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');
|
178 |
-
words=iframe2.
|
179 |
console.log(iframe);
|
180 |
-
console.log(
|
|
|
|
|
181 |
text_input = words;
|
182 |
console.log(text_input);
|
183 |
return [text_input,iframe];
|
|
|
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 |
+
words=iframe2.innerText;
|
179 |
console.log(iframe);
|
180 |
+
console.log(iframe2);
|
181 |
+
console.log(words);
|
182 |
+
|
183 |
text_input = words;
|
184 |
console.log(text_input);
|
185 |
return [text_input,iframe];
|