Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
179 |
console.log(text_input);
|
180 |
-
return [
|
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 |
|