prozorov commited on
Commit
2112a80
·
verified ·
1 Parent(s): 976410c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -38,13 +38,6 @@ def json_string_to_poster(json_string:str)-> str:
38
  <html>
39
  <body>
40
  <div id="root">{json_string}</div>
41
- <script>
42
-
43
- console.log('Running script');
44
- const json_obj = JSON.parse(document.getElementById("root").innerHTML);
45
- console.log(json_obj)
46
- document.getElementById("root").innerHTML += 'Hello!'
47
- </script>
48
  </body>
49
  </html>
50
  """
@@ -104,6 +97,6 @@ with gr.Blocks() as demo:
104
  outputs=poster_display
105
  )
106
 
107
- demo.load(None, None, None, js="""async () => {console.log('Hello')}""")
108
 
109
  demo.launch()
 
38
  <html>
39
  <body>
40
  <div id="root">{json_string}</div>
 
 
 
 
 
 
 
41
  </body>
42
  </html>
43
  """
 
97
  outputs=poster_display
98
  )
99
 
100
+ demo.load(None, None, None, js=scripts)
101
 
102
  demo.launch()