Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add space header package
Browse files- front/views/layout.hbs +88 -70
front/views/layout.hbs
CHANGED
|
@@ -1,72 +1,90 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
-
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
<
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
</html>
|
|
|
|
|
|
|
| 1 |
<html>
|
| 2 |
+
<head>
|
| 3 |
+
<meta charset="utf-8" />
|
| 4 |
+
<title>
|
| 5 |
+
{{#if meta.title}}
|
| 6 |
+
{{meta.title}}
|
| 7 |
+
{{else if doc.title}}
|
| 8 |
+
{{doc.title}}
|
| 9 |
+
{{else}}
|
| 10 |
+
Write With Transformer
|
| 11 |
+
{{/if}}
|
| 12 |
+
</title>
|
| 13 |
+
<meta
|
| 14 |
+
name="viewport"
|
| 15 |
+
content="width=device-width, initial-scale=1.0, user-scalable=no"
|
| 16 |
+
/>
|
| 17 |
+
<link rel="stylesheet" href="/front/build/style.css?v4" />
|
| 18 |
+
<link
|
| 19 |
+
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700"
|
| 20 |
+
rel="stylesheet"
|
| 21 |
+
/>
|
| 22 |
+
{{#if meta.title}}
|
| 23 |
+
<meta property="og:title" content="{{meta.title}}" />
|
| 24 |
+
{{else}}
|
| 25 |
+
<meta property="og:title" content="Write With Transformer" />
|
| 26 |
+
{{/if}}
|
| 27 |
+
<meta property="og:type" content="website" />
|
| 28 |
+
<meta
|
| 29 |
+
property="og:url"
|
| 30 |
+
content="https://transformer.huggingface.co{{meta.path}}"
|
| 31 |
+
/>
|
| 32 |
+
{{#if meta.thumbnail}}
|
| 33 |
+
<meta
|
| 34 |
+
property="og:image"
|
| 35 |
+
content="https://transformer.huggingface.co/front/assets/{{meta.thumbnail}}.png"
|
| 36 |
+
/>
|
| 37 |
+
{{else}}
|
| 38 |
+
<meta
|
| 39 |
+
property="og:image"
|
| 40 |
+
content="https://transformer.huggingface.co/front/assets/thumbnail-large.png"
|
| 41 |
+
/>
|
| 42 |
+
{{/if}}
|
| 43 |
+
<meta property="fb:app_id" content="1321688464574422" />
|
| 44 |
+
<meta name="twitter:card" content="summary_large_image" />
|
| 45 |
+
<meta name="twitter:site" content="@huggingface" />
|
| 46 |
+
<meta
|
| 47 |
+
name="description"
|
| 48 |
+
content="See how a modern neural network auto-completes your text"
|
| 49 |
+
/>
|
| 50 |
+
</head>
|
| 51 |
+
<body class="{{body_classes}}" data-editable="{{editable}}">
|
| 52 |
+
{{{body}}}
|
| 53 |
+
|
| 54 |
+
<script src="/front/assets/github-buttons.js"></script>
|
| 55 |
+
<script src="/front/node_modules/quill/dist/quill.js"></script>
|
| 56 |
+
<script src="/front/build/bundle.js"></script>
|
| 57 |
+
<script>
|
| 58 |
+
(function() { if (window.location.hostname === 'localhost') {
|
| 59 |
+
console.log('[livereload]', 'on'); const s =
|
| 60 |
+
document.createElement('script'); s.setAttribute('src',
|
| 61 |
+
'//localhost:35729/livereload.js'); document.body.appendChild(s); } })();
|
| 62 |
+
</script>
|
| 63 |
+
<!-- Google analytics (legacy) -->
|
| 64 |
+
<script>
|
| 65 |
+
if (! ['localhost',
|
| 66 |
+
'huggingface.test'].includes(window.location.hostname)) {
|
| 67 |
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
| 68 |
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
|
| 69 |
+
Date();a=s.createElement(o),
|
| 70 |
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
| 71 |
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
| 72 |
+
ga('create', 'UA-83738774-5', 'auto'); ga('send', 'pageview'); }
|
| 73 |
+
</script>
|
| 74 |
+
<!-- Google tag (gtag.js) -->
|
| 75 |
+
<script
|
| 76 |
+
async
|
| 77 |
+
src="https://www.googletagmanager.com/gtag/js?id=G-56Y0W3EPT3"
|
| 78 |
+
></script>
|
| 79 |
+
<script>
|
| 80 |
+
if (! ['localhost',
|
| 81 |
+
'huggingface.test'].includes(window.location.hostname)) { window.dataLayer
|
| 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>
|