dbirks commited on
Commit
5b2b513
β€’
1 Parent(s): acf77d4

Try changing all `huggingface/diffuse-the-rest` to `dbirks/diffuse-the-rest`

Browse files
README.md CHANGED
@@ -13,7 +13,7 @@ app_file: build/index.html
13
  To develop locally:
14
 
15
  ```
16
- git clone https://huggingface.co/spaces/huggingface/diffuse-the-rest
17
  cd diffuse-the-rest
18
  npm ci
19
  NODE_ENV="development" npm run dev -- --open
 
13
  To develop locally:
14
 
15
  ```
16
+ git clone https://huggingface.co/spaces/dbirks/diffuse-the-rest
17
  cd diffuse-the-rest
18
  npm ci
19
  NODE_ENV="development" npm run dev -- --open
build/_app/immutable/components/pages/_page.svelte-33371231.js CHANGED
@@ -1,3 +1,3 @@
1
  import{S as ct,i as dt,s as ft,k as i,a as V,q as v,H as ht,l as c,m as h,h as a,c as q,r as _,n,I as Ve,F as e,b as ce,J as de,K as ut,L as pt,A as $e,M as rt,o as mt,z as gt,N as wt,p as et,O as bt,P as qe}from"../../chunks/index-a207c28c.js";const{document:Ee,window:tt}=wt;function at(u){let p,r,d,I,x,k;return{c(){p=i("div"),r=i("p"),d=v("Loading\u2026"),I=V(),x=i("p"),k=v("\u2588\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592")},l(g){p=c(g,"DIV",{});var l=h(p);r=c(l,"P",{});var E=h(r);d=_(E,"Loading\u2026"),E.forEach(a),I=q(l),x=c(l,"P",{});var D=h(x);k=_(D,"\u2588\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592"),D.forEach(a),l.forEach(a)},m(g,l){ce(g,p,l),e(p,r),e(r,d),e(p,I),e(p,x),e(x,k)},d(g){g&&a(p)}}}function nt(u){let p,r,d,I,x,k,g,l,E,D,T,L,s,S,B,A,H;return{c(){p=i("div"),r=i("div"),d=i("span"),I=V(),x=i("button"),k=v("diffuse the f rest"),l=V(),E=i("div"),D=i("label"),T=i("input"),L=v(`
2
  upload img`),s=V(),S=i("p"),B=v("pro tip: upload img by dropping on the canvas"),this.h()},l(y){p=c(y,"DIV",{});var m=h(p);r=c(m,"DIV",{class:!0});var P=h(r);d=c(P,"SPAN",{class:!0,role:!0,contenteditable:!0,style:!0,spellcheck:!0,dir:!0,maxlength:!0}),h(d).forEach(a),I=q(P),x=c(P,"BUTTON",{class:!0});var F=h(x);k=_(F,"diffuse the f rest"),F.forEach(a),P.forEach(a),l=q(m),E=c(m,"DIV",{class:!0});var z=h(E);D=c(z,"LABEL",{class:!0});var U=h(D);T=c(U,"INPUT",{accept:!0,style:!0,type:!0}),L=_(U,`
3
- upload img`),U.forEach(a),s=q(z),S=c(z,"P",{class:!0});var X=h(S);B=_(X,"pro tip: upload img by dropping on the canvas"),X.forEach(a),z.forEach(a),m.forEach(a),this.h()},h(){n(d,"class","overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none svelte-1wfa7x9"),n(d,"role","textbox"),n(d,"contenteditable",""),et(d,"--placeholder","'Add prompt'"),n(d,"spellcheck","false"),n(d,"dir","auto"),n(d,"maxlength","200"),u[0]===void 0&&bt(()=>u[14].call(d)),n(x,"class","bg-blue-500 hover:bg-blue-700 text-white font-bold py-[0.555rem] px-4"),n(r,"class",g="flex gap-x-2 mt-3 items-start justify-center "+(u[1]?"animate-pulse":"")),n(T,"accept","image/*"),et(T,"display","none"),n(T,"type","file"),n(D,"class","inline border py-1 px-1.5 bg-slate-200 cursor-pointer"),n(S,"class","hidden desktop:inline mt-2 opacity-50"),n(E,"class","mt-4")},m(y,m){ce(y,p,m),e(p,r),e(r,d),u[0]!==void 0&&(d.textContent=u[0]),e(r,I),e(r,x),e(x,k),e(p,l),e(p,E),e(E,D),e(D,T),u[15](T),e(D,L),e(E,s),e(E,S),e(S,B),A||(H=[de(d,"input",u[14]),de(d,"keydown",u[11]),de(x,"click",u[7]),de(T,"change",u[8])],A=!0)},p(y,m){m[0]&1&&y[0]!==d.textContent&&(d.textContent=y[0]),m[0]&2&&g!==(g="flex gap-x-2 mt-3 items-start justify-center "+(y[1]?"animate-pulse":""))&&n(r,"class",g)},d(y){y&&a(p),u[15](null),A=!1,rt(H)}}}function vt(u){let p,r,d,I,x,k,g,l,E,D,T,L,s,S,B,A,H,y,m,P,F,z,U,X,fe,Y,ee,he,ue,W,pe,G,me,ge,J,t,o,f,b,w,M,O,te,Z,we,Q,ke,ae,Ce,xe,ne,Se,Ae,be,Pe,Le,$,Te,oe,je,Be,re,Me,Ie,Ne,Oe,N=!u[2]&&at(),j=u[2]&&nt(u);return{c(){p=i("link"),r=i("script"),I=i("script"),k=i("script"),l=V(),E=i("div"),D=i("canvas"),L=V(),s=i("div"),N&&N.c(),S=V(),B=i("div"),A=V(),j&&j.c(),y=V(),m=i("article"),P=i("div"),F=i("p"),z=v("Stable Diffusion model by "),U=i("a"),X=v("CompVis"),fe=v(" and "),Y=i("a"),ee=v("Stability AI"),he=v(" - Demo by \u{1F917} Hugging Face"),ue=V(),W=i("p"),pe=v("Powered by "),G=i("a"),me=v("\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),ge=v(". Based on "),J=i("a"),t=v("notebook by @psuraj28"),o=V(),f=i("p"),b=v("Check out "),w=i("a"),M=v("Stable Diffusion Gradio demo"),O=V(),te=i("h3"),Z=v("LICENSE"),we=V(),Q=i("p"),ke=v("The model is licensed with a "),ae=i("a"),Ce=v("CreativeML Open RAIL-M"),xe=v(" license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),ne=i("a"),Se=v("read the license"),Ae=V(),be=i("h3"),Pe=v("Biases and content acknowledgment"),Le=V(),$=i("p"),Te=v("Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),oe=i("a"),je=v("LAION-5B dataset"),Be=v(", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),re=i("a"),Me=v("model card"),this.h()},l(C){const R=ht('[data-svelte="svelte-bw39ln"]',Ee.head);p=c(R,"LINK",{href:!0,rel:!0}),r=c(R,"SCRIPT",{src:!0});var st=h(r);st.forEach(a),I=c(R,"SCRIPT",{src:!0});var lt=h(I);lt.forEach(a),k=c(R,"SCRIPT",{src:!0});var it=h(k);it.forEach(a),R.forEach(a),l=q(C),E=c(C,"DIV",{class:!0});var De=h(E);D=c(De,"CANVAS",{class:!0}),h(D).forEach(a),L=q(De),s=c(De,"DIV",{class:!0});var se=h(s);N&&N.l(se),S=q(se),B=c(se,"DIV",{id:!0}),h(B).forEach(a),A=q(se),j&&j.l(se),se.forEach(a),De.forEach(a),y=q(C),m=c(C,"ARTICLE",{class:!0});var K=h(m);P=c(K,"DIV",{class:!0});var le=h(P);F=c(le,"P",{});var ie=h(F);z=_(ie,"Stable Diffusion model by "),U=c(ie,"A",{href:!0,rel:!0});var Ue=h(U);X=_(Ue,"CompVis"),Ue.forEach(a),fe=_(ie," and "),Y=c(ie,"A",{href:!0,rel:!0});var He=h(Y);ee=_(He,"Stability AI"),He.forEach(a),he=_(ie," - Demo by \u{1F917} Hugging Face"),ie.forEach(a),ue=q(le),W=c(le,"P",{});var ve=h(W);pe=_(ve,"Powered by "),G=c(ve,"A",{href:!0,rel:!0});var ze=h(G);me=_(ze,"\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),ze.forEach(a),ge=_(ve,". Based on "),J=c(ve,"A",{href:!0,rel:!0});var We=h(J);t=_(We,"notebook by @psuraj28"),We.forEach(a),ve.forEach(a),o=q(le),f=c(le,"P",{});var Re=h(f);b=_(Re,"Check out "),w=c(Re,"A",{href:!0,rel:!0});var Ke=h(w);M=_(Ke,"Stable Diffusion Gradio demo"),Ke.forEach(a),Re.forEach(a),le.forEach(a),O=q(K),te=c(K,"H3",{});var Ye=h(te);Z=_(Ye,"LICENSE"),Ye.forEach(a),we=q(K),Q=c(K,"P",{});var _e=h(Q);ke=_(_e,"The model is licensed with a "),ae=c(_e,"A",{href:!0,rel:!0});var Ge=h(ae);Ce=_(Ge,"CreativeML Open RAIL-M"),Ge.forEach(a),xe=_(_e," license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),ne=c(_e,"A",{href:!0,rel:!0});var Je=h(ne);Se=_(Je,"read the license"),Je.forEach(a),_e.forEach(a),Ae=q(K),be=c(K,"H3",{});var Qe=h(be);Pe=_(Qe,"Biases and content acknowledgment"),Qe.forEach(a),Le=q(K),$=c(K,"P",{});var ye=h($);Te=_(ye,"Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),oe=c(ye,"A",{href:!0,rel:!0});var Xe=h(oe);je=_(Xe,"LAION-5B dataset"),Xe.forEach(a),Be=_(ye,", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),re=c(ye,"A",{href:!0,rel:!0});var Ze=h(re);Me=_(Ze,"model card"),Ze.forEach(a),ye.forEach(a),K.forEach(a),this.h()},h(){n(p,"href","https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css"),n(p,"rel","stylesheet"),Ve(r.src,d="https://code.jquery.com/jquery-1.12.4.min.js")||n(r,"src",d),Ve(I.src,x="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js")||n(I,"src",x),Ve(k.src,g="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js")||n(k,"src",g),n(D,"class",T="border-[1.2px] desktop:mt-[34px] "+(u[6]?"":"hidden")),n(B,"id","board-container"),n(s,"class",H="flex flex-col items-center "+(u[1]?"pointer-events-none":"")),n(E,"class","flex flex-wrap gap-x-4 gap-y-2 justify-center my-8"),n(U,"href","https://huggingface.co/CompVis"),n(U,"rel","nofollow"),n(Y,"href","https://huggingface.co/stabilityai"),n(Y,"rel","nofollow"),n(G,"href","https://github.com/huggingface/diffusers"),n(G,"rel","nofollow"),n(J,"href","https://twitter.com/psuraj28/status/1562039265126670339"),n(J,"rel","nofollow"),n(w,"href","https://huggingface.co/spaces/stabilityai/stable-diffusion"),n(w,"rel","nofollow"),n(P,"class","text-center"),n(ae,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),n(ae,"rel","nofollow"),n(ne,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),n(ne,"rel","nofollow"),n(oe,"href","https://laion.ai/blog/laion-5b/"),n(oe,"rel","nofollow"),n(re,"href","https://huggingface.co/CompVis/stable-diffusion-v1-4"),n(re,"rel","nofollow"),n(m,"class",Ie="prose-sm px-4 md:px-12 lg:px-56 mb-8 "+(u[2]?"":"hidden"))},m(C,R){e(Ee.head,p),e(Ee.head,r),e(Ee.head,I),e(Ee.head,k),ce(C,l,R),ce(C,E,R),e(E,D),u[12](D),e(E,L),e(E,s),N&&N.m(s,null),e(s,S),e(s,B),u[13](B),e(s,A),j&&j.m(s,null),ce(C,y,R),ce(C,m,R),e(m,P),e(P,F),e(F,z),e(F,U),e(U,X),e(F,fe),e(F,Y),e(Y,ee),e(F,he),e(P,ue),e(P,W),e(W,pe),e(W,G),e(G,me),e(W,ge),e(W,J),e(J,t),e(P,o),e(P,f),e(f,b),e(f,w),e(w,M),e(m,O),e(m,te),e(te,Z),e(m,we),e(m,Q),e(Q,ke),e(Q,ae),e(ae,Ce),e(Q,xe),e(Q,ne),e(ne,Se),e(m,Ae),e(m,be),e(be,Pe),e(m,Le),e(m,$),e($,Te),e($,oe),e(oe,je),e($,Be),e($,re),e(re,Me),Ne||(Oe=[de(tt,"drop",ut(pt(u[9]))),de(tt,"paste",u[10])],Ne=!0)},p(C,R){R[0]&64&&T!==(T="border-[1.2px] desktop:mt-[34px] "+(C[6]?"":"hidden"))&&n(D,"class",T),C[2]?N&&(N.d(1),N=null):N||(N=at(),N.c(),N.m(s,S)),C[2]?j?j.p(C,R):(j=nt(C),j.c(),j.m(s,null)):j&&(j.d(1),j=null),R[0]&2&&H!==(H="flex flex-col items-center "+(C[1]?"pointer-events-none":""))&&n(s,"class",H),R[0]&4&&Ie!==(Ie="prose-sm px-4 md:px-12 lg:px-56 mb-8 "+(C[2]?"":"hidden"))&&n(m,"class",Ie)},i:$e,o:$e,d(C){a(p),a(r),a(I),a(k),C&&a(l),C&&a(E),u[12](null),N&&N.d(),u[13](null),j&&j.d(),C&&a(y),C&&a(m),Ne=!1,rt(Oe)}}}const Fe=500,ot=3e3;function _t(){window.createImageBitmap=async function(u){return new Promise((p,r)=>{const d=document.createElement("canvas"),I=d.getContext("2d");d.width=u.width,d.height=u.height,I.putImageData(u,0,0);const x=d.toDataURL(),k=document.createElement("img");k.addEventListener("load",()=>{p(k)}),k.src=x})}}function yt(){const u=document.querySelectorAll("a");for(const p of u)p.target="_blank"}function Et(u,p,r){let d="",I=!1,x=!1,k,g,l,E,D,T,L,s=400,S,B,A,H=!1,y=[];async function m(){if(!l)return;const t=l.createImageData(g.width,g.height),o=t.data;for(let w=0,M=o.length;w<M;w+=4)o[w]=40*Math.random()*7,o[w+1]=40*Math.random()*7,o[w+2]=40*Math.random()*7,o[w+3]=255;const f=await createImageBitmap(t),b=performance.now()-E;l.globalAlpha=Math.min(b,ot)/ot,l.drawImage(f,0,0,s,s),I&&window.requestAnimationFrame(m)}function P(t){if(!l)return;const o=performance.now()-D;l.globalAlpha=Math.min(o,Fe)/Fe,l.drawImage(t,0,0,s,s),o<Fe&&window.requestAnimationFrame(()=>P(t))}async function F(t){const o=t.toDataURL("png"),b=await(await fetch(o)).blob(),w=new File([b],"canvas shot.png",{type:"image/png"}),M=t.getContext("2d").getImageData(0,0,s,s),O=await createImageBitmap(M);return{imgFile:w,imgBitmap:O}}async function z(){if(!d)return alert("Please add prompt");if(!g||!l)return;L&&clearInterval(L),r(1,I=!0),r(6,H=!1),Y(),E=performance.now(),m();const{imgFile:t,imgBitmap:o}=await F(g),f=new FormData;f.append("prompt",d),f.append("strength","0.85"),f.append("image",t);try{const b=await fetch("https://sdb.pcuenca.net/i2i",{method:"POST",body:f}),w=JSON.parse(await b.text()),{images:M}=w;if(!M.length)return alert("All the results were flagged. Please try again with diffeerent sketch + prompt");y=await Promise.all(M.map(async te=>{const Z=new Image;return Z.src=`data:image/png;base64, ${te}`,await new Promise((we,Q)=>{Z.onload=()=>we(Z)}),Z})),y.push(o),r(6,H=!0);let O=0;D=performance.now(),P(y[O%y.length]),T=()=>{L&&clearInterval(L),D=performance.now(),O=O+1,P(y[O%y.length])},L=setInterval(()=>{O=O+1,D=performance.now(),P(y[O%y.length])},2500),x||U()}catch(b){console.error(b),alert("Error happened, queue might be full. Please try again in a bit :)")}finally{r(1,I=!1)}}function U(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u23EF",o.onclick=T,t.append(o);const f=document.querySelector(".drawing-board-controls");f&&y.length>1&&(f.appendChild(t),x=!0,r(3,S.onclick=()=>{L&&clearInterval(L)},S))}function X(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u{1F9F9}",o.onclick=()=>{l==null||l.clearRect(0,0,s,s),y=[],r(6,H=!1)},t.append(o);const f=document.querySelector(".drawing-board-controls");f&&f.appendChild(t)}function fe(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u2B07\uFE0F",o.onclick=()=>{if(!g)return;const b=document.createElement("a"),w=Date.now()%200;b.download=`diffuse-the-rest-${w}.png`,b.href=g.toDataURL(),b.click()},t.append(o);const f=document.querySelector(".drawing-board-controls");f&&f.appendChild(t)}function Y(){const t=A.getContext("2d");r(5,A.width=g.width,A),r(5,A.height=g.height,A),t.drawImage(g,0,0)}async function ee(t){L&&clearInterval(L);const o=new Image;o.src=URL.createObjectURL(t),await new Promise((w,M)=>{o.onload=()=>w(o)});const{width:f,height:b}=o;if(f==b)l==null||l.drawImage(o,0,0,f,b,0,0,s,s);else if(f>b){const w=Math.floor(s*b/f),M=Math.floor((s-w)/2);l==null||l.drawImage(o,0,0,f,b,0,M,s,w)}else{const w=Math.floor(s*f/b),M=Math.floor((s-w)/2);l==null||l.drawImage(o,0,0,f,b,M,0,w,s)}}function he(){var o;const t=(o=B.files)==null?void 0:o[0];t&&ee(t)}function ue(t){var b;if(!((b=t.dataTransfer)!=null&&b.files))return;t.preventDefault();const f=Array.from(t.dataTransfer.files)[0];ee(f)}function W(t){if(!t.clipboardData)return;const o=Array.from(t.clipboardData.files);if(o.length===0)return;t.preventDefault();const f=o[0];ee(f)}function pe(t){if(I)return t.preventDefault();t.code==="Enter"&&(t.preventDefault(),z())}mt(async()=>{typeof createImageBitmap>"u"&&_t();const{innerWidth:t}=window;s=Math.min(s,Math.floor(t*.75)),r(3,S.style.width=`${s}px`,S),r(3,S.style.height=`${s}px`,S),r(5,A.style.width=`${s}px`,A),r(5,A.style.height=`${s}px`,A),await gt(),k=new window.DrawingBoard.Board("board-container",{size:10,controls:["Color",{Size:{type:"dropdown"}},{DrawingMode:{filler:!1}}],webStorage:!1,enlargeYourContainer:!0}),r(2,g=k.canvas),l=g.getContext("2d"),r(2,g.ondragover=function(o){return o.preventDefault(),!1},g),X(),fe(),yt()});function G(t){qe[t?"unshift":"push"](()=>{A=t,r(5,A)})}function me(t){qe[t?"unshift":"push"](()=>{S=t,r(3,S)})}function ge(){d=this.textContent,r(0,d)}function J(t){qe[t?"unshift":"push"](()=>{B=t,r(4,B)})}return[d,I,g,S,B,A,H,z,he,ue,W,pe,G,me,ge,J]}class Dt extends ct{constructor(p){super(),dt(this,p,Et,vt,ft,{},null,[-1,-1])}}export{Dt as default};
 
1
  import{S as ct,i as dt,s as ft,k as i,a as V,q as v,H as ht,l as c,m as h,h as a,c as q,r as _,n,I as Ve,F as e,b as ce,J as de,K as ut,L as pt,A as $e,M as rt,o as mt,z as gt,N as wt,p as et,O as bt,P as qe}from"../../chunks/index-a207c28c.js";const{document:Ee,window:tt}=wt;function at(u){let p,r,d,I,x,k;return{c(){p=i("div"),r=i("p"),d=v("Loading\u2026"),I=V(),x=i("p"),k=v("\u2588\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592")},l(g){p=c(g,"DIV",{});var l=h(p);r=c(l,"P",{});var E=h(r);d=_(E,"Loading\u2026"),E.forEach(a),I=q(l),x=c(l,"P",{});var D=h(x);k=_(D,"\u2588\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592\u2592"),D.forEach(a),l.forEach(a)},m(g,l){ce(g,p,l),e(p,r),e(r,d),e(p,I),e(p,x),e(x,k)},d(g){g&&a(p)}}}function nt(u){let p,r,d,I,x,k,g,l,E,D,T,L,s,S,B,A,H;return{c(){p=i("div"),r=i("div"),d=i("span"),I=V(),x=i("button"),k=v("diffuse the f rest"),l=V(),E=i("div"),D=i("label"),T=i("input"),L=v(`
2
  upload img`),s=V(),S=i("p"),B=v("pro tip: upload img by dropping on the canvas"),this.h()},l(y){p=c(y,"DIV",{});var m=h(p);r=c(m,"DIV",{class:!0});var P=h(r);d=c(P,"SPAN",{class:!0,role:!0,contenteditable:!0,style:!0,spellcheck:!0,dir:!0,maxlength:!0}),h(d).forEach(a),I=q(P),x=c(P,"BUTTON",{class:!0});var F=h(x);k=_(F,"diffuse the f rest"),F.forEach(a),P.forEach(a),l=q(m),E=c(m,"DIV",{class:!0});var z=h(E);D=c(z,"LABEL",{class:!0});var U=h(D);T=c(U,"INPUT",{accept:!0,style:!0,type:!0}),L=_(U,`
3
+ upload img`),U.forEach(a),s=q(z),S=c(z,"P",{class:!0});var X=h(S);B=_(X,"pro tip: upload img by dropping on the canvas"),X.forEach(a),z.forEach(a),m.forEach(a),this.h()},h(){n(d,"class","overflow-auto resize-y py-2 px-3 min-h-[42px] max-h-[500px] !w-[181px] whitespace-pre-wrap inline-block border border-gray-200 shadow-inner outline-none svelte-1wfa7x9"),n(d,"role","textbox"),n(d,"contenteditable",""),et(d,"--placeholder","'Add prompt'"),n(d,"spellcheck","false"),n(d,"dir","auto"),n(d,"maxlength","200"),u[0]===void 0&&bt(()=>u[14].call(d)),n(x,"class","bg-blue-500 hover:bg-blue-700 text-white font-bold py-[0.555rem] px-4"),n(r,"class",g="flex gap-x-2 mt-3 items-start justify-center "+(u[1]?"animate-pulse":"")),n(T,"accept","image/*"),et(T,"display","none"),n(T,"type","file"),n(D,"class","inline border py-1 px-1.5 bg-slate-200 cursor-pointer"),n(S,"class","hidden desktop:inline mt-2 opacity-50"),n(E,"class","mt-4")},m(y,m){ce(y,p,m),e(p,r),e(r,d),u[0]!==void 0&&(d.textContent=u[0]),e(r,I),e(r,x),e(x,k),e(p,l),e(p,E),e(E,D),e(D,T),u[15](T),e(D,L),e(E,s),e(E,S),e(S,B),A||(H=[de(d,"input",u[14]),de(d,"keydown",u[11]),de(x,"click",u[7]),de(T,"change",u[8])],A=!0)},p(y,m){m[0]&1&&y[0]!==d.textContent&&(d.textContent=y[0]),m[0]&2&&g!==(g="flex gap-x-2 mt-3 items-start justify-center "+(y[1]?"animate-pulse":""))&&n(r,"class",g)},d(y){y&&a(p),u[15](null),A=!1,rt(H)}}}function vt(u){let p,r,d,I,x,k,g,l,E,D,T,L,s,S,B,A,H,y,m,P,F,z,U,X,fe,Y,ee,he,ue,W,pe,G,me,ge,J,t,o,f,b,w,M,O,te,Z,we,Q,ke,ae,Ce,xe,ne,Se,Ae,be,Pe,Le,$,Te,oe,je,Be,re,Me,Ie,Ne,Oe,N=!u[2]&&at(),j=u[2]&&nt(u);return{c(){p=i("link"),r=i("script"),I=i("script"),k=i("script"),l=V(),E=i("div"),D=i("canvas"),L=V(),s=i("div"),N&&N.c(),S=V(),B=i("div"),A=V(),j&&j.c(),y=V(),m=i("article"),P=i("div"),F=i("p"),z=v("Stable Diffusion model by "),U=i("a"),X=v("CompVis"),fe=v(" and "),Y=i("a"),ee=v("Stability AI"),he=v(" - Demo by \u{1F917} Hugging Face"),ue=V(),W=i("p"),pe=v("Powered by "),G=i("a"),me=v("\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),ge=v(". Based on "),J=i("a"),t=v("notebook by @psuraj28"),o=V(),f=i("p"),b=v("Check out "),w=i("a"),M=v("Stable Diffusion Gradio demo"),O=V(),te=i("h3"),Z=v("LICENSE"),we=V(),Q=i("p"),ke=v("The model is licensed with a "),ae=i("a"),Ce=v("CreativeML Open RAIL-M"),xe=v(" license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),ne=i("a"),Se=v("read the license"),Ae=V(),be=i("h3"),Pe=v("Biases and content acknowledgment"),Le=V(),$=i("p"),Te=v("Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),oe=i("a"),je=v("LAION-5B dataset"),Be=v(", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),re=i("a"),Me=v("model card"),this.h()},l(C){const R=ht('[data-svelte="svelte-bw39ln"]',Ee.head);p=c(R,"LINK",{href:!0,rel:!0}),r=c(R,"SCRIPT",{src:!0});var st=h(r);st.forEach(a),I=c(R,"SCRIPT",{src:!0});var lt=h(I);lt.forEach(a),k=c(R,"SCRIPT",{src:!0});var it=h(k);it.forEach(a),R.forEach(a),l=q(C),E=c(C,"DIV",{class:!0});var De=h(E);D=c(De,"CANVAS",{class:!0}),h(D).forEach(a),L=q(De),s=c(De,"DIV",{class:!0});var se=h(s);N&&N.l(se),S=q(se),B=c(se,"DIV",{id:!0}),h(B).forEach(a),A=q(se),j&&j.l(se),se.forEach(a),De.forEach(a),y=q(C),m=c(C,"ARTICLE",{class:!0});var K=h(m);P=c(K,"DIV",{class:!0});var le=h(P);F=c(le,"P",{});var ie=h(F);z=_(ie,"Stable Diffusion model by "),U=c(ie,"A",{href:!0,rel:!0});var Ue=h(U);X=_(Ue,"CompVis"),Ue.forEach(a),fe=_(ie," and "),Y=c(ie,"A",{href:!0,rel:!0});var He=h(Y);ee=_(He,"Stability AI"),He.forEach(a),he=_(ie," - Demo by \u{1F917} Hugging Face"),ie.forEach(a),ue=q(le),W=c(le,"P",{});var ve=h(W);pe=_(ve,"Powered by "),G=c(ve,"A",{href:!0,rel:!0});var ze=h(G);me=_(ze,"\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),ze.forEach(a),ge=_(ve,". Based on "),J=c(ve,"A",{href:!0,rel:!0});var We=h(J);t=_(We,"notebook by @psuraj28"),We.forEach(a),ve.forEach(a),o=q(le),f=c(le,"P",{});var Re=h(f);b=_(Re,"Check out "),w=c(Re,"A",{href:!0,rel:!0});var Ke=h(w);M=_(Ke,"Stable Diffusion Gradio demo"),Ke.forEach(a),Re.forEach(a),le.forEach(a),O=q(K),te=c(K,"H3",{});var Ye=h(te);Z=_(Ye,"LICENSE"),Ye.forEach(a),we=q(K),Q=c(K,"P",{});var _e=h(Q);ke=_(_e,"The model is licensed with a "),ae=c(_e,"A",{href:!0,rel:!0});var Ge=h(ae);Ce=_(Ge,"CreativeML Open RAIL-M"),Ge.forEach(a),xe=_(_e," license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),ne=c(_e,"A",{href:!0,rel:!0});var Je=h(ne);Se=_(Je,"read the license"),Je.forEach(a),_e.forEach(a),Ae=q(K),be=c(K,"H3",{});var Qe=h(be);Pe=_(Qe,"Biases and content acknowledgment"),Qe.forEach(a),Le=q(K),$=c(K,"P",{});var ye=h($);Te=_(ye,"Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),oe=c(ye,"A",{href:!0,rel:!0});var Xe=h(oe);je=_(Xe,"LAION-5B dataset"),Xe.forEach(a),Be=_(ye,", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),re=c(ye,"A",{href:!0,rel:!0});var Ze=h(re);Me=_(Ze,"model card"),Ze.forEach(a),ye.forEach(a),K.forEach(a),this.h()},h(){n(p,"href","https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css"),n(p,"rel","stylesheet"),Ve(r.src,d="https://code.jquery.com/jquery-1.12.4.min.js")||n(r,"src",d),Ve(I.src,x="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js")||n(I,"src",x),Ve(k.src,g="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js")||n(k,"src",g),n(D,"class",T="border-[1.2px] desktop:mt-[34px] "+(u[6]?"":"hidden")),n(B,"id","board-container"),n(s,"class",H="flex flex-col items-center "+(u[1]?"pointer-events-none":"")),n(E,"class","flex flex-wrap gap-x-4 gap-y-2 justify-center my-8"),n(U,"href","https://huggingface.co/CompVis"),n(U,"rel","nofollow"),n(Y,"href","https://huggingface.co/stabilityai"),n(Y,"rel","nofollow"),n(G,"href","https://github.com/dbirks/diffusers"),n(G,"rel","nofollow"),n(J,"href","https://twitter.com/psuraj28/status/1562039265126670339"),n(J,"rel","nofollow"),n(w,"href","https://huggingface.co/spaces/stabilityai/stable-diffusion"),n(w,"rel","nofollow"),n(P,"class","text-center"),n(ae,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),n(ae,"rel","nofollow"),n(ne,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),n(ne,"rel","nofollow"),n(oe,"href","https://laion.ai/blog/laion-5b/"),n(oe,"rel","nofollow"),n(re,"href","https://huggingface.co/CompVis/stable-diffusion-v1-4"),n(re,"rel","nofollow"),n(m,"class",Ie="prose-sm px-4 md:px-12 lg:px-56 mb-8 "+(u[2]?"":"hidden"))},m(C,R){e(Ee.head,p),e(Ee.head,r),e(Ee.head,I),e(Ee.head,k),ce(C,l,R),ce(C,E,R),e(E,D),u[12](D),e(E,L),e(E,s),N&&N.m(s,null),e(s,S),e(s,B),u[13](B),e(s,A),j&&j.m(s,null),ce(C,y,R),ce(C,m,R),e(m,P),e(P,F),e(F,z),e(F,U),e(U,X),e(F,fe),e(F,Y),e(Y,ee),e(F,he),e(P,ue),e(P,W),e(W,pe),e(W,G),e(G,me),e(W,ge),e(W,J),e(J,t),e(P,o),e(P,f),e(f,b),e(f,w),e(w,M),e(m,O),e(m,te),e(te,Z),e(m,we),e(m,Q),e(Q,ke),e(Q,ae),e(ae,Ce),e(Q,xe),e(Q,ne),e(ne,Se),e(m,Ae),e(m,be),e(be,Pe),e(m,Le),e(m,$),e($,Te),e($,oe),e(oe,je),e($,Be),e($,re),e(re,Me),Ne||(Oe=[de(tt,"drop",ut(pt(u[9]))),de(tt,"paste",u[10])],Ne=!0)},p(C,R){R[0]&64&&T!==(T="border-[1.2px] desktop:mt-[34px] "+(C[6]?"":"hidden"))&&n(D,"class",T),C[2]?N&&(N.d(1),N=null):N||(N=at(),N.c(),N.m(s,S)),C[2]?j?j.p(C,R):(j=nt(C),j.c(),j.m(s,null)):j&&(j.d(1),j=null),R[0]&2&&H!==(H="flex flex-col items-center "+(C[1]?"pointer-events-none":""))&&n(s,"class",H),R[0]&4&&Ie!==(Ie="prose-sm px-4 md:px-12 lg:px-56 mb-8 "+(C[2]?"":"hidden"))&&n(m,"class",Ie)},i:$e,o:$e,d(C){a(p),a(r),a(I),a(k),C&&a(l),C&&a(E),u[12](null),N&&N.d(),u[13](null),j&&j.d(),C&&a(y),C&&a(m),Ne=!1,rt(Oe)}}}const Fe=500,ot=3e3;function _t(){window.createImageBitmap=async function(u){return new Promise((p,r)=>{const d=document.createElement("canvas"),I=d.getContext("2d");d.width=u.width,d.height=u.height,I.putImageData(u,0,0);const x=d.toDataURL(),k=document.createElement("img");k.addEventListener("load",()=>{p(k)}),k.src=x})}}function yt(){const u=document.querySelectorAll("a");for(const p of u)p.target="_blank"}function Et(u,p,r){let d="",I=!1,x=!1,k,g,l,E,D,T,L,s=400,S,B,A,H=!1,y=[];async function m(){if(!l)return;const t=l.createImageData(g.width,g.height),o=t.data;for(let w=0,M=o.length;w<M;w+=4)o[w]=40*Math.random()*7,o[w+1]=40*Math.random()*7,o[w+2]=40*Math.random()*7,o[w+3]=255;const f=await createImageBitmap(t),b=performance.now()-E;l.globalAlpha=Math.min(b,ot)/ot,l.drawImage(f,0,0,s,s),I&&window.requestAnimationFrame(m)}function P(t){if(!l)return;const o=performance.now()-D;l.globalAlpha=Math.min(o,Fe)/Fe,l.drawImage(t,0,0,s,s),o<Fe&&window.requestAnimationFrame(()=>P(t))}async function F(t){const o=t.toDataURL("png"),b=await(await fetch(o)).blob(),w=new File([b],"canvas shot.png",{type:"image/png"}),M=t.getContext("2d").getImageData(0,0,s,s),O=await createImageBitmap(M);return{imgFile:w,imgBitmap:O}}async function z(){if(!d)return alert("Please add prompt");if(!g||!l)return;L&&clearInterval(L),r(1,I=!0),r(6,H=!1),Y(),E=performance.now(),m();const{imgFile:t,imgBitmap:o}=await F(g),f=new FormData;f.append("prompt",d),f.append("strength","0.85"),f.append("image",t);try{const b=await fetch("https://sdb.pcuenca.net/i2i",{method:"POST",body:f}),w=JSON.parse(await b.text()),{images:M}=w;if(!M.length)return alert("All the results were flagged. Please try again with diffeerent sketch + prompt");y=await Promise.all(M.map(async te=>{const Z=new Image;return Z.src=`data:image/png;base64, ${te}`,await new Promise((we,Q)=>{Z.onload=()=>we(Z)}),Z})),y.push(o),r(6,H=!0);let O=0;D=performance.now(),P(y[O%y.length]),T=()=>{L&&clearInterval(L),D=performance.now(),O=O+1,P(y[O%y.length])},L=setInterval(()=>{O=O+1,D=performance.now(),P(y[O%y.length])},2500),x||U()}catch(b){console.error(b),alert("Error happened, queue might be full. Please try again in a bit :)")}finally{r(1,I=!1)}}function U(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u23EF",o.onclick=T,t.append(o);const f=document.querySelector(".drawing-board-controls");f&&y.length>1&&(f.appendChild(t),x=!0,r(3,S.onclick=()=>{L&&clearInterval(L)},S))}function X(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u{1F9F9}",o.onclick=()=>{l==null||l.clearRect(0,0,s,s),y=[],r(6,H=!1)},t.append(o);const f=document.querySelector(".drawing-board-controls");f&&f.appendChild(t)}function fe(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u2B07\uFE0F",o.onclick=()=>{if(!g)return;const b=document.createElement("a"),w=Date.now()%200;b.download=`diffuse-the-rest-${w}.png`,b.href=g.toDataURL(),b.click()},t.append(o);const f=document.querySelector(".drawing-board-controls");f&&f.appendChild(t)}function Y(){const t=A.getContext("2d");r(5,A.width=g.width,A),r(5,A.height=g.height,A),t.drawImage(g,0,0)}async function ee(t){L&&clearInterval(L);const o=new Image;o.src=URL.createObjectURL(t),await new Promise((w,M)=>{o.onload=()=>w(o)});const{width:f,height:b}=o;if(f==b)l==null||l.drawImage(o,0,0,f,b,0,0,s,s);else if(f>b){const w=Math.floor(s*b/f),M=Math.floor((s-w)/2);l==null||l.drawImage(o,0,0,f,b,0,M,s,w)}else{const w=Math.floor(s*f/b),M=Math.floor((s-w)/2);l==null||l.drawImage(o,0,0,f,b,M,0,w,s)}}function he(){var o;const t=(o=B.files)==null?void 0:o[0];t&&ee(t)}function ue(t){var b;if(!((b=t.dataTransfer)!=null&&b.files))return;t.preventDefault();const f=Array.from(t.dataTransfer.files)[0];ee(f)}function W(t){if(!t.clipboardData)return;const o=Array.from(t.clipboardData.files);if(o.length===0)return;t.preventDefault();const f=o[0];ee(f)}function pe(t){if(I)return t.preventDefault();t.code==="Enter"&&(t.preventDefault(),z())}mt(async()=>{typeof createImageBitmap>"u"&&_t();const{innerWidth:t}=window;s=Math.min(s,Math.floor(t*.75)),r(3,S.style.width=`${s}px`,S),r(3,S.style.height=`${s}px`,S),r(5,A.style.width=`${s}px`,A),r(5,A.style.height=`${s}px`,A),await gt(),k=new window.DrawingBoard.Board("board-container",{size:10,controls:["Color",{Size:{type:"dropdown"}},{DrawingMode:{filler:!1}}],webStorage:!1,enlargeYourContainer:!0}),r(2,g=k.canvas),l=g.getContext("2d"),r(2,g.ondragover=function(o){return o.preventDefault(),!1},g),X(),fe(),yt()});function G(t){qe[t?"unshift":"push"](()=>{A=t,r(5,A)})}function me(t){qe[t?"unshift":"push"](()=>{S=t,r(3,S)})}function ge(){d=this.textContent,r(0,d)}function J(t){qe[t?"unshift":"push"](()=>{B=t,r(4,B)})}return[d,I,g,S,B,A,H,z,he,ue,W,pe,G,me,ge,J]}class Dt extends ct{constructor(p){super(),dt(this,p,Et,vt,ft,{},null,[-1,-1])}}export{Dt as default};
build/index.html CHANGED
@@ -2,16 +2,16 @@
2
  <html lang="en">
3
  <head>
4
  <meta charset="utf-8" />
5
- <link rel="icon" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/favicon.png" />
6
  <meta name="viewport" content="width=device-width" />
7
  <meta http-equiv="content-security-policy" content=""><link href="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css" rel="stylesheet" data-svelte="svelte-bw39ln"><script src="https://code.jquery.com/jquery-1.12.4.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js" data-svelte="svelte-bw39ln"></script>
8
- <link href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/assets/+layout-2ac25133.css" rel="stylesheet">
9
- <link href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/assets/+page-376b236d.css" rel="stylesheet">
10
- <link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/start-984b4ea4.js">
11
- <link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/chunks/index-a207c28c.js">
12
- <link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/chunks/singletons-dbc25720.js">
13
- <link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/components/pages/_layout.svelte-dd7ed0fb.js">
14
- <link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/components/pages/_page.svelte-33371231.js">
15
  </head>
16
  <body>
17
  <div>
@@ -24,7 +24,7 @@
24
  <div id="board-container"></div>
25
  </div></div>
26
  <article class="prose-sm px-4 md:px-12 lg:px-56 mb-8 hidden"><div class="text-center"><p>Stable Diffusion model by <a href="https://huggingface.co/CompVis" rel="nofollow">CompVis</a> and <a href="https://huggingface.co/stabilityai" rel="nofollow">Stability AI</a> - Demo by πŸ€— Hugging Face</p>
27
- <p>TEST Powered by <a href="https://github.com/huggingface/diffusers" rel="nofollow">πŸ€— Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch</a>. Based on <a href="https://twitter.com/psuraj28/status/1562039265126670339" rel="nofollow">notebook by @psuraj28</a></p>
28
  <p>Check out <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion" rel="nofollow">Stable Diffusion Gradio demo</a></p></div>
29
  <h3>LICENSE</h3>
30
  <p>The model is licensed with a <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" rel="nofollow">CreativeML Open RAIL-M</a> license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" rel="nofollow">read the license</a></p>
@@ -32,13 +32,13 @@
32
  <p>Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the <a href="https://laion.ai/blog/laion-5b/" rel="nofollow">LAION-5B dataset</a>, which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the <a href="https://huggingface.co/CompVis/stable-diffusion-v1-4" rel="nofollow">model card</a></p></article>
33
 
34
  <script type="module" data-sveltekit-hydrate="1kokcf0">
35
- import { set_public_env, start } from "/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/start-984b4ea4.js";
36
 
37
  set_public_env({});
38
 
39
  start({
40
  target: document.querySelector('[data-sveltekit-hydrate="1kokcf0"]').parentNode,
41
- paths: {"base":"/staticspaceiframe/huggingface/diffuse-the-rest/build","assets":"/staticspaceiframe/huggingface/diffuse-the-rest/build"},
42
  route: true,
43
  spa: false,
44
  trailing_slash: "never",
 
2
  <html lang="en">
3
  <head>
4
  <meta charset="utf-8" />
5
+ <link rel="icon" href="/staticspaceiframe/dbirks/diffuse-the-rest/build/favicon.png" />
6
  <meta name="viewport" content="width=device-width" />
7
  <meta http-equiv="content-security-policy" content=""><link href="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css" rel="stylesheet" data-svelte="svelte-bw39ln"><script src="https://code.jquery.com/jquery-1.12.4.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js" data-svelte="svelte-bw39ln"></script>
8
+ <link href="/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/assets/+layout-2ac25133.css" rel="stylesheet">
9
+ <link href="/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/assets/+page-376b236d.css" rel="stylesheet">
10
+ <link rel="modulepreload" href="/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/start-984b4ea4.js">
11
+ <link rel="modulepreload" href="/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/chunks/index-a207c28c.js">
12
+ <link rel="modulepreload" href="/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/chunks/singletons-dbc25720.js">
13
+ <link rel="modulepreload" href="/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/components/pages/_layout.svelte-dd7ed0fb.js">
14
+ <link rel="modulepreload" href="/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/components/pages/_page.svelte-33371231.js">
15
  </head>
16
  <body>
17
  <div>
 
24
  <div id="board-container"></div>
25
  </div></div>
26
  <article class="prose-sm px-4 md:px-12 lg:px-56 mb-8 hidden"><div class="text-center"><p>Stable Diffusion model by <a href="https://huggingface.co/CompVis" rel="nofollow">CompVis</a> and <a href="https://huggingface.co/stabilityai" rel="nofollow">Stability AI</a> - Demo by πŸ€— Hugging Face</p>
27
+ <p>TEST Powered by <a href="https://github.com/dbirks/diffusers" rel="nofollow">πŸ€— Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch</a>. Based on <a href="https://twitter.com/psuraj28/status/1562039265126670339" rel="nofollow">notebook by @psuraj28</a></p>
28
  <p>Check out <a href="https://huggingface.co/spaces/stabilityai/stable-diffusion" rel="nofollow">Stable Diffusion Gradio demo</a></p></div>
29
  <h3>LICENSE</h3>
30
  <p>The model is licensed with a <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" rel="nofollow">CreativeML Open RAIL-M</a> license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" rel="nofollow">read the license</a></p>
 
32
  <p>Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the <a href="https://laion.ai/blog/laion-5b/" rel="nofollow">LAION-5B dataset</a>, which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the <a href="https://huggingface.co/CompVis/stable-diffusion-v1-4" rel="nofollow">model card</a></p></article>
33
 
34
  <script type="module" data-sveltekit-hydrate="1kokcf0">
35
+ import { set_public_env, start } from "/staticspaceiframe/dbirks/diffuse-the-rest/build/_app/immutable/start-984b4ea4.js";
36
 
37
  set_public_env({});
38
 
39
  start({
40
  target: document.querySelector('[data-sveltekit-hydrate="1kokcf0"]').parentNode,
41
+ paths: {"base":"/staticspaceiframe/dbirks/diffuse-the-rest/build","assets":"/staticspaceiframe/dbirks/diffuse-the-rest/build"},
42
  route: true,
43
  spa: false,
44
  trailing_slash: "never",
src/routes/+page.svelte CHANGED
@@ -427,7 +427,7 @@
427
 
428
  Stable Diffusion model by [CompVis](https://huggingface.co/CompVis) and [Stability AI](https://huggingface.co/stabilityai) - Demo by πŸ€— Hugging Face
429
 
430
- Powered by [πŸ€— Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch](https://github.com/huggingface/diffusers). Based on [notebook by @psuraj28](https://twitter.com/psuraj28/status/1562039265126670339)
431
 
432
  Check out [Stable Diffusion Gradio demo](https://huggingface.co/spaces/stabilityai/stable-diffusion)
433
  </div>
 
427
 
428
  Stable Diffusion model by [CompVis](https://huggingface.co/CompVis) and [Stability AI](https://huggingface.co/stabilityai) - Demo by πŸ€— Hugging Face
429
 
430
+ Powered by [πŸ€— Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch](https://github.com/dbirks/diffusers). Based on [notebook by @psuraj28](https://twitter.com/psuraj28/status/1562039265126670339)
431
 
432
  Check out [Stable Diffusion Gradio demo](https://huggingface.co/spaces/stabilityai/stable-diffusion)
433
  </div>
svelte.config.js CHANGED
@@ -15,7 +15,7 @@ const config = {
15
 
16
  kit: {
17
  paths: {
18
- base: dev ? '' : '/staticspaceiframe/huggingface/diffuse-the-rest/build'
19
  },
20
  adapter: adapter(),
21
  prerender: {
 
15
 
16
  kit: {
17
  paths: {
18
+ base: dev ? '' : '/staticspaceiframe/dbirks/diffuse-the-rest/build'
19
  },
20
  adapter: adapter(),
21
  prerender: {