Spaces:
Runtime error
Runtime error
File size: 830 Bytes
1036a70 886a264 1036a70 c3e90a5 1036a70 d06f218 1036a70 f4c965b 1036a70 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
import gradio as gr
HTML = """
<canvas id="rustCanvas" height=500></canvas>
<script type="text/javascript" src="file/main.ab801f492b3a5d9625fa.js"></script>
<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.ab8199311525ec1a2beb.js");'></script>
"""
demo = gr.Interface(
lambda: HTML,
None,
["html"],
)
demo.launch()
|