ayush5710 commited on
Commit
54d9b1d
1 Parent(s): ed71376

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +22 -8
index.html CHANGED
@@ -7,13 +7,27 @@
7
  <link rel="stylesheet" href="style.css" />
8
  </head>
9
  <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
  </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
7
  <link rel="stylesheet" href="style.css" />
8
  </head>
9
  <body>
10
+ <div class="iframe-container">
11
+ <iframe
12
+ src="https://codellama-codellama-13b-chat.hf.space"
13
+ frameborder="0"
14
+ scrolling="no"
15
+ ></iframe>
16
+ </div>
17
+ <button class="click"><span>🤖</span></button>
18
  </body>
19
+ <script>
20
+ const click = document.querySelector('.click')
21
+ const frame = document.querySelector('.iframe-container')
22
+ let i = 1;
23
+ click.addEventListener('click', ()=>{
24
+ if(i == 0) {
25
+ frame.style.display = 'none'
26
+ i = 1
27
+ }else if(i == 1){
28
+ frame.style.display = 'block'
29
+ i = 0
30
+ }
31
+ })
32
+ </script>
33
  </html>