Hariganesh Srinivasan commited on
Commit
736f80d
1 Parent(s): c3e90a5

remove old js link and script tags

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
 
3
  HTML = """
4
  <canvas id="rustCanvas" height=500></canvas>
5
- <script type="text/javascript" src="file/main.ab801f492b3a5d9625fa.js"></script>
6
  <style onload='
7
  function loadXMLDoc(file) {
8
  var xmlhttp = new XMLHttpRequest();
@@ -20,14 +19,15 @@ HTML = """
20
 
21
  xmlhttp.open("GET", "file/" + file, true);
22
  xmlhttp.send();
23
- } loadXMLDoc("main.ab8199311525ec1a2beb.js");'></script>
24
 
25
  """
26
 
27
  demo = gr.Interface(
28
- lambda: HTML,
29
- None,
30
- ["html"],
 
31
  )
32
 
33
  demo.launch()
 
2
 
3
  HTML = """
4
  <canvas id="rustCanvas" height=500></canvas>
 
5
  <style onload='
6
  function loadXMLDoc(file) {
7
  var xmlhttp = new XMLHttpRequest();
 
19
 
20
  xmlhttp.open("GET", "file/" + file, true);
21
  xmlhttp.send();
22
+ } loadXMLDoc("main.ab8199311525ec1a2beb.js");'>
23
 
24
  """
25
 
26
  demo = gr.Interface(
27
+ fn=lambda: HTML,
28
+ outputs="html",
29
+ inputs=None,
30
+ allow_flagging="never"
31
  )
32
 
33
  demo.launch()