Spaces:
Sleeping
Sleeping
Added missing method
Browse files
app.py
CHANGED
|
@@ -15,4 +15,10 @@ iface = gr.Interface(
|
|
| 15 |
outputs="text"
|
| 16 |
)
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
iface.launch()
|
|
|
|
| 15 |
outputs="text"
|
| 16 |
)
|
| 17 |
|
| 18 |
+
iface.load(lambda: window.addEventListener('message', (event) => {
|
| 19 |
+
if (event.data.type === 'initial_input') {
|
| 20 |
+
iface.update(inputs=[event.data.project_data, event.data.question])
|
| 21 |
+
}
|
| 22 |
+
}))
|
| 23 |
+
|
| 24 |
iface.launch()
|