Spaces:
Running
Running
Update
Browse files- README.md +0 -12
- assets/{index-DrY88zBJ.css β index-CF8Yv3Jz.css} +1 -1
- assets/index-DhRPY5dV.js +0 -0
- assets/index-dSqgYYrr.js +0 -0
- assets/{worker_mlm-DD8LOndV.js β worker_mlm-C-nr7ZZ-.js} +0 -0
- favicon.svg +5 -0
- index.html +14 -14
- style.css +0 -28
- vite.svg +0 -1
README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Fill Mask Demo
|
3 |
-
emoji: π
|
4 |
-
colorFrom: pink
|
5 |
-
colorTo: indigo
|
6 |
-
sdk: static
|
7 |
-
pinned: false
|
8 |
-
license: apache-2.0
|
9 |
-
short_description: transformers.js fill-mask demo
|
10 |
-
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/{index-DrY88zBJ.css β index-CF8Yv3Jz.css}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em;border-radius:8px;background:#f8f8f8;box-shadow:0 2px 4px #0000001a;max-width:800px;margin:0 auto}.read-the-docs{color:#888}.message{margin:1em 0;padding:.5em;background:#f0f0f0;border-radius:4px}.error{margin:1em 0;padding:.5em;background:#fff0f0;color:#c00;border-radius:4px}.container{max-width:800px;margin:0 auto;padding:2rem;text-align:center}textarea{width:100%;padding:.8em;margin-bottom:.5em;border:1px solid #ccc;border-radius:4px;font-size:1em;resize:vertical}button{background:#646cff;color:#fff;border:none;padding:.6em 1.2em;border-radius:4px;cursor:pointer;font-size:1em;margin:1em 0}button:hover{background:#747bff}button:disabled{opacity:.5;cursor:not-allowed}.predictions-container{margin:.5em 0;padding:.5em;background:#f0f0f0;border-radius:4px}.predictions-scroll{display:flex;overflow-x:auto;gap:.5em;padding:.5em;scrollbar-width:thin;scrollbar-color:#888 #eee}.predictions-scroll::-webkit-scrollbar{height:6px}.predictions-scroll::-webkit-scrollbar-track{background:#eee;border-radius:3px}.predictions-scroll::-webkit-scrollbar-thumb{background-color:#888;border-radius:3px}.prediction-item{background:#fff;padding:.5em 1em;border-radius:4px;box-shadow:0 1px 2px #0000001a;white-space:nowrap;font-size:.9em}.usage-hint{font-size:.8em;color:#888;margin:.2em 0 .5em;text-align:left;font-style:italic}.model-section{margin-top:2em;padding-top:1em;border-top:1px solid #eee}.model-section h3{margin:0 0 1em;color:#666;font-size:1.1em}.model-selector{margin-bottom:.5em;display:flex;gap:1em;align-items:stretch}.model-selector select{flex:1;padding:.6em 2.4em .6em 1.2em;border:1px solid #ccc;border-radius:4px;font-size:1em;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .6em center;background-size:1.4em}.model-selector select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.model-selector button{margin:0;white-space:nowrap}.device-select{width:auto;min-width:120px;padding:.6em 2.4em .6em 1.2em;border:1px solid #ccc;border-radius:4px;font-size:1em;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .6em center;background-size:1.4em}.device-select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.benchmark-info{font-size:.8em;color:#666;text-align:right;margin:.2em 0 1em}
|
|
|
1 |
+
:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em;border-radius:8px;background:#f8f8f8;box-shadow:0 2px 4px #0000001a;max-width:800px;margin:0 auto}.read-the-docs{color:#888}.message{margin:1em 0;padding:.5em;background:#f0f0f0;border-radius:4px}.error{margin:1em 0;padding:.5em;background:#fff0f0;color:#c00;border-radius:4px}.container{max-width:800px;margin:0 auto;padding:2rem;text-align:center}textarea{width:100%;padding:.8em;margin-bottom:.5em;border:1px solid #ccc;border-radius:4px;font-size:1em;resize:vertical}button{background:#646cff;color:#fff;border:none;padding:.6em 1.2em;border-radius:4px;cursor:pointer;font-size:1em;margin:1em 0}button:hover{background:#747bff}button:disabled{opacity:.5;cursor:not-allowed}.predictions-container{margin:.5em 0;padding:.5em;background:#f0f0f0;border-radius:4px}.predictions-scroll{display:flex;overflow-x:auto;gap:.5em;padding:.5em;scrollbar-width:thin;scrollbar-color:#888 #eee}.predictions-scroll::-webkit-scrollbar{height:6px}.predictions-scroll::-webkit-scrollbar-track{background:#eee;border-radius:3px}.predictions-scroll::-webkit-scrollbar-thumb{background-color:#888;border-radius:3px}.prediction-item{background:#fff;padding:.5em 1em;border-radius:4px;box-shadow:0 1px 2px #0000001a;white-space:nowrap;font-size:.9em}.usage-hint{font-size:.8em;color:#888;margin:.2em 0 .5em;text-align:left;font-style:italic}.model-section{margin-top:2em;padding-top:1em;border-top:1px solid #eee}.model-section h3{margin:0 0 1em;color:#666;font-size:1.1em}.model-selector{margin-bottom:.5em;display:flex;gap:1em;align-items:stretch}.model-selector select{flex:1;padding:.6em 2.4em .6em 1.2em;border:1px solid #ccc;border-radius:4px;font-size:1em;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .6em center;background-size:1.4em}.model-selector select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.model-selector button{margin:0;white-space:nowrap}.device-select{width:auto;min-width:120px;padding:.6em 2.4em .6em 1.2em;border:1px solid #ccc;border-radius:4px;font-size:1em;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .6em center;background-size:1.4em}.device-select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.benchmark-info{font-size:.8em;color:#666;text-align:right;margin:.2em 0 1em}.quantization-select{width:auto;min-width:180px;padding:.6em 2.4em .6em 1.2em;border:1px solid #ccc;border-radius:4px;font-size:1em;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .6em center;background-size:1.4em}.quantization-select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff33}.notifications-container{position:fixed;top:20px;right:20px;z-index:1000;display:flex;flex-direction:column;gap:10px}.notification{padding:12px 24px;border-radius:4px;color:#fff;font-size:.9em;max-width:300px;animation:slideIn .3s ease-out,fadeOut .3s ease-in forwards 2.7s;box-shadow:0 2px 5px #0003}.notification-info{background-color:#3498db}.notification-warning{background-color:#f1c40f;color:#2c3e50}.notification-error{background-color:#e74c3c}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}
|
assets/index-DhRPY5dV.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
assets/index-dSqgYYrr.js
DELETED
The diff for this file is too large to render.
See raw diff
|
|
assets/{worker_mlm-DD8LOndV.js β worker_mlm-C-nr7ZZ-.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
favicon.svg
ADDED
index.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
<!doctype html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8" />
|
5 |
-
<link rel="icon" type="image/svg+xml" href="/
|
6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
-
<title>
|
8 |
-
<script type="module" crossorigin src="/assets/index-
|
9 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
10 |
-
</head>
|
11 |
-
<body>
|
12 |
-
<div id="root"></div>
|
13 |
-
</body>
|
14 |
-
</html>
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8" />
|
5 |
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
+
<title>FillMask-JS Demo</title>
|
8 |
+
<script type="module" crossorigin src="/assets/index-DhRPY5dV.js"></script>
|
9 |
+
<link rel="stylesheet" crossorigin href="/assets/index-CF8Yv3Jz.css">
|
10 |
+
</head>
|
11 |
+
<body>
|
12 |
+
<div id="root"></div>
|
13 |
+
</body>
|
14 |
+
</html>
|
style.css
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
body {
|
2 |
-
padding: 2rem;
|
3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
4 |
-
}
|
5 |
-
|
6 |
-
h1 {
|
7 |
-
font-size: 16px;
|
8 |
-
margin-top: 0;
|
9 |
-
}
|
10 |
-
|
11 |
-
p {
|
12 |
-
color: rgb(107, 114, 128);
|
13 |
-
font-size: 15px;
|
14 |
-
margin-bottom: 10px;
|
15 |
-
margin-top: 5px;
|
16 |
-
}
|
17 |
-
|
18 |
-
.card {
|
19 |
-
max-width: 620px;
|
20 |
-
margin: 0 auto;
|
21 |
-
padding: 16px;
|
22 |
-
border: 1px solid lightgray;
|
23 |
-
border-radius: 16px;
|
24 |
-
}
|
25 |
-
|
26 |
-
.card p:last-child {
|
27 |
-
margin-bottom: 0;
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vite.svg
DELETED