hendoo commited on
Commit
8de3ac2
1 Parent(s): c87d665
Files changed (1) hide show
  1. index.html +18 -1
index.html CHANGED
@@ -6,6 +6,8 @@
6
  <meta name="viewport" content="width=device-width" />
7
  <title>My static Space</title>
8
  <link rel="stylesheet" href="style.css" />
 
 
9
  </head>
10
  <body>
11
  <div class="card">
@@ -16,5 +18,20 @@
16
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
17
  </p>
18
  </div>
19
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  </html>
 
6
  <meta name="viewport" content="width=device-width" />
7
  <title>My static Space</title>
8
  <link rel="stylesheet" href="style.css" />
9
+ <script src="https://unpkg.com/gradio"></script>
10
+
11
  </head>
12
  <body>
13
  <div class="card">
 
18
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
19
  </p>
20
  </div>
21
+ <div id="gradio-container"></div>
22
+ <script>
23
+ function loadGradioInterface() {
24
+ gradio.Interface.load("models/lllyasviel/sd-controlnet-mlsd").then(function(interface) {
25
+ interface.launch({
26
+ 'container': '#gradio-container',
27
+ });
28
+ });
29
+ }
30
+
31
+ document.addEventListener("DOMContentLoaded", loadGradioInterface);
32
+ </script>
33
+
34
+ </body>
35
+
36
+
37
  </html>