enzostvs HF staff commited on
Commit
3d6ecef
1 Parent(s): 1a89f87

use esm script

Browse files
Files changed (1) hide show
  1. front/views/layout.hbs +7 -3
front/views/layout.hbs CHANGED
@@ -82,9 +82,13 @@
82
  = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}
83
  gtag('js', new Date()); gtag('config', 'G-56Y0W3EPT3'); }
84
  </script>
85
- <script async src="https://esm.sh/@huggingface/space-header"></script>
86
- <script>
87
- window.init("banana-projects/transformer-autocomplete") })();
 
 
 
 
88
  </script>
89
  </body>
90
  </html>
 
82
  = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}
83
  gtag('js', new Date()); gtag('config', 'G-56Y0W3EPT3'); }
84
  </script>
85
+ <script type="importmap">
86
+ { "imports": { "space-header": "https://esm.sh/@huggingface/space-header"
87
+ } }
88
+ </script>
89
+ <script type="module">
90
+ import {init} from 'space-header';
91
+ init("banana-projects/transformer-autocomplete")
92
  </script>
93
  </body>
94
  </html>