Spaces:
Sleeping
Sleeping
Try fix issue with window not being recognized
Browse files
app.py
CHANGED
|
@@ -20,15 +20,7 @@ def process_message(message):
|
|
| 20 |
# JavaScript for message handling
|
| 21 |
js = """
|
| 22 |
function on_message(event) {
|
| 23 |
-
|
| 24 |
-
// Access the gradio elements through window.gradio
|
| 25 |
-
// const projectData = event.data.projectData;
|
| 26 |
-
// const question = event.data.question;
|
| 27 |
-
alert('test');
|
| 28 |
-
// Update the textboxes
|
| 29 |
-
// document.querySelector('#project_data textarea').value = projectData;
|
| 30 |
-
// document.querySelector('#output textarea').value = question;
|
| 31 |
-
//}
|
| 32 |
}
|
| 33 |
window.addEventListener('message', on_message);
|
| 34 |
"""
|
|
|
|
| 20 |
# JavaScript for message handling
|
| 21 |
js = """
|
| 22 |
function on_message(event) {
|
| 23 |
+
alert('test');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
window.addEventListener('message', on_message);
|
| 26 |
"""
|