10 ms·
The trade off is flexibility, right? I mean, with something like gradio, can you add e.g. an event listener to a specific DOM element?
by rahimnathwani 4y ago
The trade off is flexibility, right? I mean, with something like gradio, can you add e.g. an event listener to a specific DOM element?
- abidlabs 4y agoYou can, if that that specific DOM element is a Gradio component (e.g. a button, image, textbox, etc). Here's a very simple example: https://github.com/gradio-app/gradio/blob/main/demo/blocks_hello/run.py https://github.com/gradio-app/gradio/blob/main/demo/blocks_h...