Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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').
|
| 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 [
|
| 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 |
|