PageSourceSearch

https://yashbyname-ocr-using-got-and-tesseract.hf.space/assets/Index-CvVJ_4HA.js

js yashbyname-ocr-using-got-and-tesseract.hf.space collected 2026-10-03 10:23:30 UTC 7,579 bytes, 2 lines download raw bytes

1import{B as K,F as L}from"./FileUpload-BWzg-N5i.js";import{a as Oe}from"./FileUpload-BWzg-N5i.js";import{B as M}from"./Button-uOcat6Z0.js";import{S as Q}from"./Index-D21IHG0c.js";import{U as R}from"./UploadText-Dnj0K08n.js";import{default as qe}from"./Example-DrmWnoSo.js";import"./BlockLabel-BXXlQleC.js";import"./Empty-CLiqUlWX.js";import"./File-BQ_9P3Ye.js";import"./Upload-46YxStuW.js";import"./index-D5ROCp7B.js";import"./svelte/svelte.js";/* empty css                                                   */import"./ModifyUpload-By7WzcPJ.js";import"./Download-DVtk-Jv3.js";import"./Undo-CpmTQw3B.js";import"./DownloadLink-BgAM71ly.js";import"./file-url-BIHPd7vS.js";import"./Upload-Cp8Go_XF.js";/* empty css                                              */const{SvelteComponent:V,assign:W,check_outros:X,create_component:v,destroy_component:B,detach:j,empty:Y,flush:f,get_spread_object:Z,get_spread_update:p,group_outros:$,init:y,insert:q,mount_component:F,safe_not_equal:x,space:ee,transition_in:h,transition_out:m}=window.__gradio__svelte__internal;function te(s){let e,i;return e=new K({props:{upload:s[14].client.upload,stream_handler:s[14].client.stream,label:s[7],show_label:s[8],value:s[0],file_count:s[15],file_types:s[16],selectable:s[10],root:s[6],height:s[9],max_file_size:s[14].max_file_size,i18n:s[14].i18n,$$slots:{default:[se]},$$scope:{ctx:s}}}),e.$on("change",s[21]),e.$on("drag",s[22]),e.$on("clear",s[23]),e.$on("select",s[24]),e.$on("upload",s[25]),e.$on("error",s[26]),e.$on("delete",s[27]),{c(){v(e.$$.fragment)},m(t,l){F(e,t,l),i=!0},p(t,l){const a={};l&16384&&(a.upload=t[14].client.upload),l&16384&&(a.stream_handler=t[14].client.stream),l&128&&(a.label=t[7]),l&256&&(a.show_label=t[8]),l&1&&(a.value=t[0]),l&32768&&(a.file_count=t[15]),l&65536&&(a.file_types=t[16]),l&1024&&(a.selectable=t[10]),l&64&&(a.root=t[6]),l&512&&(a.height=t[9]),l&16384&&(a.max_file_size=t[14].max_file_size),l&16384&&(a.i18n=t[14].i18n),l&268451840&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){i||(h(e.$$.fragment,t),i=!0)},o(t){m(e.$$.fragment,t),i=!1},d(t){B(e,t)}}}function le(s){let e,i;return e=new L({props:{selectable:s[10],value:s[0],label:s[7],show_label:s[8],height:s[9],i18n:s[14].i18n}}),e.$on("select",s[20]),{c(){v(e.$$.fragment)},m(t,l){F(e,t,l),i=!0},p(t,l){const a={};l&1024&&(a.selectable=t[10]),l&1&&(a.value=t[0]),l&128&&(a.label=t[7]),l&256&&(a.show_label=t[8]),l&512&&(a.height=t[9]),l&16384&&(a.i18n=t[14].i18n),e.$set(a)},i(t){i||(h(e.$$.fragment,t),i=!0)},o(t){m(e.$$.fragment,t),i=!1},d(t){B(e,t)}}}function se(s){let e,i;return e=new R({props:{i18n:s[14].i18n,type:"file"}}),{c(){v(e.$$.fragment)},m(t,l){F(e,t,l),i=!0},p(t,l){const a={};l&16384&&(a.i18n=t[14].i18n),e.$set(a)},i(t){i||(h(e.$$.fragment,t),i=!0)},o(t){m(e.$$.fragment,t),i=!1},d(t){B(e,t)}}}function ie(s){let e,i,t,l,a,_;const g=[{autoscroll:s[14].autoscroll},{i18n:s[14].i18n},s[1],{status:s[1]?.status||"complete"}];let d={};for(let o=0;o<g.length;o+=1)d=W(d,g[o]);e=new Q({props:d}),e.$on("clear_status",s[19]);const w=[le,te],u=[];function k(o,r){return o[5]?1:0}return t=k(s),l=u[t]=w[t](s),{c(){v(e.$$.fragment),i=ee(),l.c(),a=Y()},m(o,r){F(e,o,r),q(o,i,r),u[t].m(o,r),q(o,a,r),_=!0},p(o,r){const S=r&16386?p(g,[r&16384&&{autoscroll:o[14].autoscroll},r&16384&&{i18n:o[14].i18n},r&2&&Z(o[1]),r&2&&{status:o[1]?.status||"complete"}]):{};e.$set(S);let b=t;t=k(o),t===b?u[t].p(o,r):($(),m(u[b],1,1,()=>{u[b]=null}),X(),l=u[t],l?l.p(o,r):(l=u[t]=w[t](o),l.c()),h(l,1),l.m(a.parentNode,a))},i(o){_||(h(e.$$.fragment,o),h(l),_=!0)},o(o){m(e.$$.fragment,o),m(l),_=!1},d(o){o&&(j(i),j(a)),B(e,o),u[t].d(o)}}}function ne(s){let e,i;return e=new M({props:{visible:s[4],variant:s[0]?"solid":"dashed",border_mode:s[17]?"focus":"base",padding:!1,elem_id:s[2],elem_classes:s[3],container:s[11],scale:s[12],min_width:s[13],allow_overflow:!1,$$slots:{default:[ie]},$$scope:{ctx:s}}}),{c(){v(e.$$.fragment)},m(t,l){F(e,t,l),i=!0},p(t,[l]){const a={};l&16&&(a.visible=t[4]),l&1&&(a.variant=t[0]?"solid":"dashed"),l&131072&&(a.border_mode=t[17]?"focus":"base"),l&4&&(a.elem_id=t[2]),l&8&&(a.elem_classes=t[3]),l&2048&&(a.container=t[11]),l&4096&&(a.scale=t[12]),l&8192&&(a.min_width=t[13]),l&268683235&&(a.$$scope={dirty:l,ctx:t}
vendor: 3,365 bytes, lines 1-2
1),e.$set(a)},i(t){i||(h(e.$$.fragment,t),i=!0)},o(t){m(e.$$.fragment,t),i=!1},d(t){B(e,t)}}}function ae(s,e,i){let{elem_id:t=""}=e,{elem_classes:l=[]}=e,{visible:a=!0}=e,{value:_}=e,{interactive:g}=e,{root:d}=e,{label:w}=e,{show_label:u}=e,{height:k=void 0}=e,{_selectable:o=!1}=e,{loading_status:r}=e,{container:S=!0}=e,{scale:b=null}=e,{min_width:N=void 0}=e,{gradio:c}=e,{file_count:U}=e,{file_types:J=["file"]}=e,z=_,O=!1;const C=()=>c.dispatch("clear_status",r),E=({detail:n})=>c.dispatch("select",n),I=({detail:n})=>{i(0,_=n)},P=({detail:n})=>i(17,O=n),T=()=>c.dispatch("clear"),A=({detail:n})=>c.dispatch("select",n),D=()=>c.dispatch("upload"),G=({detail:n})=>{i(1,r=r||{}),i(1,r.status="error",r),c.dispatch("error",n)},H=({detail:n})=>{c.dispatch("delete",n)};return s.$$set=n=>{"elem_id"in n&&i(2,t=n.elem_id),"elem_classes"in n&&i(3,l=n.elem_classes),"visible"in n&&i(4,a=n.visible),"value"in n&&i(0,_=n.value),"interactive"in n&&i(5,g=n.interactive),"root"in n&&i(6,d=n.root),"label"in n&&i(7,w=n.label),"show_label"in n&&i(8,u=n.show_label),"height"in n&&i(9,k=n.height),"_selectable"in n&&i(10,o=n._selectable),"loading_status"in n&&i(1,r=n.loading_status),"container"in n&&i(11,S=n.container),"scale"in n&&i(12,b=n.scale),"min_width"in n&&i(13,N=n.min_width),"gradio"in n&&i(14,c=n.gradio),"file_count"in n&&i(15,U=n.file_count),"file_types"in n&&i(16,J=n.file_types)},s.$$.update=()=>{s.$$.dirty&278529&&JSON.stringify(z)!==JSON.stringify(_)&&(c.dispatch("change"),i(18,z=_))},[_,r,t,l,a,g,d,w,u,k,o,S,b,N,c,U,J,O,z,C,E,I,P,T,A,D,G,H]}class Ne extends V{constructor(e){super(),y(this,e,ae,ne,x,{elem_id:2,elem_classes:3,visible:4,value:0,interactive:5,root:6,label:7,show_label:8,height:9,_selectable:10,loading_status:1,container:11,scale:12,min_width:13,gradio:14,file_count:15,file_types:16})}get elem_id(){return this.$$.ctx[2]}set elem_id(e){this.$$set({elem_id:e}),f()}get elem_classes(){return this.$$.ctx[3]}set elem_classes(e){this.$$set({elem_classes:e}),f()}get visible(){return this.$$.ctx[4]}set visible(e){this.$$set({visible:e}),f()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),f()}get interactive(){return this.$$.ctx[5]}set interactive(e){this.$$set({interactive:e}),f()}get root(){return this.$$.ctx[6]}set root(e){this.$$set({root:e}),f()}get label(){return this.$$.ctx[7]}set label(e){this.$$set({label:e}),f()}get show_label(){return this.$$.ctx[8]}set show_label(e){this.$$set({show_label:e}),f()}get height(){return this.$$.ctx[9]}set height(e){this.$$set({height:e}),f()}get _selectable(){return this.$$.ctx[10]}set _selectable(e){this.$$set({_selectable:e}),f()}get loading_status(){return this.$$.ctx[1]}set loading_status(e){this.$$set({loading_status:e}),f()}get container(){return this.$$.ctx[11]}set container(e){this.$$set({container:e}),f()}get scale(){return this.$$.ctx[12]}set scale(e){this.$$set({scale:e}),f()}get min_width(){return this.$$.ctx[13]}set min_width(e){this.$$set({min_width:e}),f()}get gradio(){return this.$$.ctx[14]}set gradio(e){this.$$set({gradio:e}),f()}get file_count(){return this.$$.ctx[15]}set file_count(e){this.$$set({file_count:e}),f()}get file_types(){return this.$$.ctx[16]}set file_types(e){this.$$set({file_types:e}),f()}}export{qe as BaseExample,L as BaseFile,K as BaseFileUpload,Oe as FilePreview,Ne as default};
2//# sourceMappingURL=Index-CvVJ_4HA.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.