Spaces:
Running
Running
!function(){var t,e,n,r,o,i,u,c,a={495:function(){},7147:function(){},1418:function(){},3380:function(){},319:function(){},8386:function(){},3342:function(){},4245:function(t,e,n){"use strict";var r=n(552);r.OBj.allowLocalModels=!1;class o{static async getInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===this.instance&&(this.instance=(0,r.EUT)(this.task,this.model,{progress_callback:t})),this.instance}}o.task="feature-extraction",o.model="Xenova/all-MiniLM-L6-v2",o.instance=null,self.addEventListener("message",async t=>{let e=await o.getInstance(t=>{self.postMessage(t)}),n=await e(t.data.text,{pooling:"mean",normalize:!0}),r={};Object.entries(n).forEach(t=>{let[e,n]=t;r[e]=n}),console.log(r,"formattedOutput"),self.postMessage({status:"complete",text:t.data.text,output:r})})}},f={};function s(t){var e=f[t];if(void 0!==e)return e.exports;var n=f[t]={exports:{}},r=!0;try{a[t](n,n.exports,s),r=!1}finally{r&&delete f[t]}return n.exports}s.m=a,s.x=function(){var t=s.O(void 0,[15,990],function(){return s(4245)});return s.O(t)},t=[],s.O=function(e,n,r,o){if(n){o=o||0;for(var i=t.length;i>0&&t[i-1][2]>o;i--)t[i]=t[i-1];t[i]=[n,r,o];return}for(var u=1/0,i=0;i<t.length;i++){for(var n=t[i][0],r=t[i][1],o=t[i][2],c=!0,a=0;a<n.length;a++)u>=o&&Object.keys(s.O).every(function(t){return s.O[t](n[a])})?n.splice(a--,1):(c=!1,o<u&&(u=o));if(c){t.splice(i--,1);var f=r();void 0!==f&&(e=f)}}return e},n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},s.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var o=Object.create(null);s.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(e){i[e]=function(){return t[e]}});return i.default=function(){return t},s.d(o,i),o},s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce(function(e,n){return s.f[n](t,e),e},[]))},s.u=function(t){return"static/chunks/"+(15===t?"b2db8554":t)+"."+({15:"501a8fbaf2ca19ba",990:"5d290f619543b668"})[t]+".js"},s.miniCssF=function(t){},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.tt=function(){return void 0===r&&(r={createScriptURL:function(t){return t}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r},s.tu=function(t){return s.tt().createScriptURL(t)},s.p="/_next/",o={227:1},s.f.i=function(t,e){o[t]||importScripts(s.tu(s.p+s.u(t)))},u=(i=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(i),i.push=function(t){var e=t[0],n=t[1],r=t[2];for(var i in n)s.o(n,i)&&(s.m[i]=n[i]);for(r&&r(s);e.length;)o[e.pop()]=1;u(t)},c=s.x,s.x=function(){return Promise.all([s.e(15),s.e(990)]).then(c)},_N_E=s.x()}(); |