import gradio as gr HTML = """ <canvas id="rustCanvas" height=500></canvas> <style onload=' function loadXMLDoc(file) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == XMLHttpRequest.DONE) { // XMLHttpRequest.DONE == 4 if (xmlhttp.status == 200) { eval(xmlhttp.responseText); } else { alert("There was a problem fetching the wasm bindings. Try again"); } } }; xmlhttp.open("GET", "file/" + file, true); xmlhttp.send(); } loadXMLDoc("main.ce8fb551c94501aecd83.js");'> """ demo = gr.Interface( fn=lambda: HTML, outputs="html", inputs=None, allow_flagging="never" ) demo.launch()