radames commited on
Commit
4e892c3
·
1 Parent(s): e3ac51a

Upload 6 files

Browse files
assets/index-2c765c37.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var q=Object.defineProperty;var F=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>(F(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();const J="modulepreload",V=function(e){return"/"+e},C={},z=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=V(o),o in C)return;C[o]=!0;const l=o.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const u=r[c];if(u.href===o&&(!l||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${f}`))return;const s=document.createElement("link");if(s.rel=l?"stylesheet":J,l||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),l)return new Promise((c,u)=>{s.addEventListener("load",c),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})};function b(){}function I(e){return e()}function A(){return Object.create(null)}function v(e){e.forEach(I)}function M(e){return typeof e=="function"}function D(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function K(e){return Object.keys(e).length===0}function d(e,t){e.appendChild(t)}function T(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function y(e){return document.createElement(e)}function U(e){return document.createTextNode(e)}function k(){return U(" ")}function G(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function h(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function H(e){return Array.from(e.childNodes)}function Q(e,t){t=""+t,e.data!==t&&(e.data=t)}let w;function $(e){w=e}function X(){if(!w)throw new Error("Function called outside component initialization");return w}function Y(e){X().$$.on_mount.push(e)}const _=[],R=[];let g=[];const j=[],Z=Promise.resolve();let L=!1;function ee(){L||(L=!0,Z.then(W))}function O(e){g.push(e)}const x=new Set;let m=0;function W(){if(m!==0)return;const e=w;do{try{for(;m<_.length;){const t=_[m];m++,$(t),te(t.$$)}}catch(t){throw _.length=0,m=0,t}for($(null),_.length=0,m=0;R.length;)R.pop()();for(let t=0;t<g.length;t+=1){const n=g[t];x.has(n)||(x.add(n),n())}g.length=0}while(_.length);for(;j.length;)j.pop()();L=!1,x.clear(),$(e)}function te(e){if(e.fragment!==null){e.update(),v(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(O)}}function ne(e){const t=[],n=[];g.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),g=t}const re=new Set;function oe(e,t){e&&e.i&&(re.delete(e),e.i(t))}function ie(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),O(()=>{const o=e.$$.on_mount.map(I).filter(M);e.$$.on_destroy?e.$$.on_destroy.push(...o):v(o),e.$$.on_mount=[]}),r.forEach(O)}function se(e,t){const n=e.$$;n.fragment!==null&&(ne(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function le(e,t){e.$$.dirty[0]===-1&&(_.push(e),ee(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ce(e,t,n,i,r,o,l,f=[-1]){const a=w;$(e);const s=e.$$={fragment:null,ctx:[],props:o,update:b,not_equal:r,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:A(),dirty:f,skip_bound:!1,root:t.target||a.$$.root};l&&l(s.root);let c=!1;if(s.ctx=n?n(e,t.props||{},(u,p,...N)=>{const P=N.length?N[0]:p;return s.ctx&&r(s.ctx[u],s.ctx[u]=P)&&(!s.skip_bound&&s.bound[u]&&s.bound[u](P),c&&le(e,u)),p}):[],s.update(),c=!0,v(s.before_update),s.fragment=i?i(s.ctx):!1,t.target){if(t.hydrate){const u=H(t.target);s.fragment&&s.fragment.l(u),u.forEach(S)}else s.fragment&&s.fragment.c();t.intro&&oe(e.$$.fragment),ie(e,t.target,t.anchor),W()}$(a)}class ue{constructor(){E(this,"$$");E(this,"$$set")}$destroy(){se(this,1),this.$destroy=b}$on(t,n){if(!M(n))return b;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!K(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ae="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ae);function B(e){let t,n=(!e[1]||!e[0]?"Loading...":JSON.stringify(e[0],null,2))+"",i;return{c(){t=y("pre"),i=U(n),h(t,"class","bg-gray-100 dark:bg-gray-800 p-2 rounded")},m(r,o){T(r,t,o),d(t,i)},p(r,o){o&3&&n!==(n=(!r[1]||!r[0]?"Loading...":JSON.stringify(r[0],null,2))+"")&&Q(i,n)},d(r){r&&S(t)}}}function fe(e){let t,n,i,r,o,l,f,a,s,c=e[1]!==null&&B(e);return{c(){t=y("main"),n=y("h1"),n.textContent="Transformers.js",i=k(),r=y("h2"),r.textContent="Svelte (client-side)",o=k(),l=y("input"),f=k(),c&&c.c(),h(n,"class","text-5xl font-bold mb-2 text-center"),h(r,"class","text-2xl mb-4 text-center"),h(l,"type","text"),h(l,"class","w-full max-w-xs p-2 border border-gray-300 rounded mb-4 dark:text-black"),h(l,"placeholder","Enter text here"),h(t,"class","flex min-h-screen flex-col items-center justify-center p-12")},m(u,p){T(u,t,p),d(t,n),d(t,i),d(t,r),d(t,o),d(t,l),d(t,f),c&&c.m(t,null),a||(s=G(l,"input",e[3]),a=!0)},p(u,[p]){u[1]!==null?c?c.p(u,p):(c=B(u),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},i:b,o:b,d(u){u&&S(t),c&&c.d(),a=!1,s()}}}function de(e,t,n){let i,r=null,o=null;Y(async()=>{if(!i){const a=await z(()=>import("./worker-4f278980.js"),[]);i=new a.default;const s=c=>{switch(c.data.status){case"initiate":n(1,o=!1);break;case"ready":n(1,o=!0);break;case"complete":n(0,r=c.data.output[0]);break}};i.addEventListener("message",s)}});function l(a){i&&i.postMessage({text:a})}return[r,o,l,a=>{l(a.target.value)}]}class he extends ue{constructor(t){super(),ce(this,t,de,fe,D,{})}}new he({target:document.getElementById("app")});
assets/index-4438c50a.css ADDED
@@ -0,0 +1 @@
 
 
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Xanh+Mono&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.flex{display:flex}.min-h-screen{min-height:100vh}.w-full{width:100%}.max-w-xs{max-width:20rem}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.rounded{border-radius:.25rem}.border{border-width:1px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.p-12{padding:3rem}.p-2{padding:.5rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-5xl{font-size:3rem;line-height:1}.font-bold{font-weight:700}:root{--foreground-rgb: 0, 0, 0;--background-start-rgb: 214, 219, 220;--background-end-rgb: 255, 255, 255}@media (prefers-color-scheme: dark){:root{--foreground-rgb: 255, 255, 255;--background-start-rgb: 0, 0, 0;--background-end-rgb: 0, 0, 0}}body{font-family:Inter,sans-serif;color:rgb(var(--foreground-rgb));background:linear-gradient(to bottom,transparent,rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb))}@media (prefers-color-scheme: dark){.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}}
assets/worker-4f278980.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function r(){return new Worker("/assets/worker-e5390212.js")}export{r as default};
assets/worker-e5390212.js ADDED
The diff for this file is too large to render. See raw diff
 
index.html CHANGED
@@ -1,19 +1,15 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
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>
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + Svelte</title>
8
+ <script type="module" crossorigin src="/assets/index-2c765c37.js"></script>
9
+ <link rel="stylesheet" href="/assets/index-4438c50a.css">
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+
14
+ </body>
 
 
 
 
15
  </html>
vite.svg ADDED