PageSourceSearch

https://ayoubadanabdi-somali-mms-tts.hf.space/assets/BokehPlot-KkTK7c7j.js

js ayoubadanabdi-somali-mms-tts.hf.space collected 2026-10-04 16:44:40 UTC 2,536 bytes, 1 lines download raw bytes

1import{a as y}from"./i18n-DhLovEFo.js";import{M as q,a8 as E,a9 as z,aa as B,X as s,t as D,a as H,O as I,Y as J,R as L,$ as C}from"./index-9Ev7iYt6.js";var N=L('<div class="gradio-bokeh svelte-dz29a8"></div>');function X(F,e){q(e,!0);const d=`bokehDiv-${Math.random().toString(5).substring(2)}`;let b=J(()=>e.value?.plot);function M(o){return`${typeof window<"u"&&window.gradio_config?.root||""}/static/bokeh/${o}`}function t(o,n){return`${M(o)}/${n}`}function i(o,n){return n===`bokeh-${o}.min.js`?`https://cdn.bokeh.org/bokeh/release/${n}`:`https://cdn.pydata.org/bokeh/release/${n}`}function _(o,n){return new Promise((w,j)=>{const a=document.createElement("script");a.onload=()=>w(a),a.onerror=()=>{if(n){const r=document.createElement("script");r.onload=()=>w(r),r.onerror=()=>{console.error(`Failed to load Bokeh script: ${o}`),j(new Error(`Failed to load ${o}`))},r.src=n,document.head.appendChild(r)}else console.error(`Failed to load Bokeh script: ${o}`),j(new Error(`Failed to load ${o}`))},a.src=o,document.head.appendChild(a)})}async function O(o){if(document){const n=document.getElementById(d);n&&(n.innerHTML="")}if(window.Bokeh){g();let n=JSON.parse(o);await window.Bokeh.embed.embed_item(n,d)}}const k=e.bokeh_version?t(e.bokeh_version,`bokeh-${e.bokeh_version}.min.js`):null,u=e.bokeh_version?i(e.bokeh_version,`bokeh-${e.bokeh_version}.min.js`):null,P=e.bokeh_version?[t(e.bokeh_version,`bokeh-widgets-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-tables-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-gl-${e.bokeh_version}.min.js`),t(e.bokeh_version,`bokeh-api-${e.bokeh_version}.min.js`)]:[],S=e.bokeh_version?[i(e.bokeh_version,`bokeh-widgets-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-tables-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-gl-${e.bokeh_version}.min.js`),i(e.bokeh_version,`bokeh-api-${e.bokeh_version}.min.js`)]:[];let m=E(!1),v=E(z([]));async function x(){C(v,await Promise.all(P.map((o,n)=>_(o,S[n]))),!0),C(m,!0)}function h(){x()}let f=!1;function g(){const o=document.createElement("script");return o.onload=h,o.onerror=()=>{u&&_(u).then(h).catch(()=>{})},o.src=k,document.head.querySelector(`script[src="${k}"]`)?(h(),null):(document.head.appendChild(o),f=!0,o)}const c=e.bokeh_version?g():null;B(()=>{s(m)&&s(b)&&O(s(b))}),B(()=>()=>{f&&c&&document.head.contains(c)&&document.head.removeChild(c),s(v).forEach(o=>{document.head.contains(o)&&document.head.removeChild(o)})});var l=N();y(l,"data-testid","bokeh"),D(()=>y(l,"id",d)),H(F,l),I()}export{X as default};

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.