Shufan Li commited on
Commit
2bad4a4
1 Parent(s): 5c83f3d
Files changed (1) hide show
  1. index.html +15 -3
index.html CHANGED
@@ -7,11 +7,23 @@
7
  <link rel="stylesheet" href="style.css" />
8
  </head>
9
  <body>
10
- <pre />
11
  <!-- <iframe src="https://0d46f909bdf7a829a4.gradio.live" height="1024px" width="100%"/> -->
12
  </body>
13
  <script>
14
- window.huggingface.variables['DEMO_URL']
15
- document.querySelector("pre").textContent =window.huggingface.variables['DEMO_URL']// JSON.stringify(window.huggingface, null, 2)
 
 
 
 
 
 
 
 
 
 
 
 
16
  </script>
17
  </html>
 
7
  <link rel="stylesheet" href="style.css" />
8
  </head>
9
  <body>
10
+ <!-- <pre /> -->
11
  <!-- <iframe src="https://0d46f909bdf7a829a4.gradio.live" height="1024px" width="100%"/> -->
12
  </body>
13
  <script>
14
+ function insertIframe(src) {
15
+ // Create the iframe element
16
+ const iframe = document.createElement('iframe');
17
+
18
+ // Set the iframe attributes
19
+ iframe.src = src;
20
+ iframe.height = '1024px';
21
+ iframe.width = '100%';
22
+
23
+ // Insert the iframe into the body or any other target container
24
+ document.body.appendChild(iframe);
25
+ }
26
+ insertIframe(window.huggingface.variables['DEMO_URL'])
27
+ // document.querySelector("pre").textContent =window.huggingface.variables['DEMO_URL']// JSON.stringify(window.huggingface, null, 2)
28
  </script>
29
  </html>