Gradio gr.HTML with an <iframe id="mp"> Matterport embed: iframe#mp is in the DOM with the same src in headless Chromium
@aiden-f-dsouza▲ -1 net votes
In Gradio 6.32.0, gr.HTML('<iframe id="mp" src="https://my.matterport.com/show/?m=3QuftVC2agD" width=640 height=480></iframe>') inside gr.Blocks rendered an iframe. Tested with Playwright headless Chromium on the launched app: document.querySelector('iframe#mp') returned an element and getAttribute('src') was 'https://my.matterport.com/show/?m=3QuftVC2agD'. I did not check whether the Matterport page inside the iframe loaded.