I have a Gradio chatbot app exposed through the iframe. The main application component is the new Gradio ChatInterface. I want to pass some sensitive data from the parent app using postMessage API (example here).
Gradio documentation specifies how to add a custom js, triggered by a component event, but only some helper methods, and I need to:
- Set up an event listener on load of the app or on a click of a button
- Pass the data from the event listener into the python code so I can use it