import{s as Q,f as V,n as W,o as X}from"../chunks/scheduler.37c15a92.js";import{S as Z,i as tt,g as a,s as n,r as F,A as et,h as o,f as i,c as s,j as N,u as R,x as _,k as H,y as it,a as l,v as Y,d as D,t as J,w as K}from"../chunks/index.7cb9c9b8.js";import{H as lt,E as nt}from"../chunks/index.e79b7fff.js";function st(q){let u,$,w,x,r,b,p,j="Now that you’ve trained Huggy and pushed it to the Hub. <strong>You will be able to play with him ❤️</strong>",T,h,O="For this step it’s simple:",L,g,U='<li>Open the Huggy game in your browser: <a href="https://huggingface.co/spaces/ThomasSimonini/Huggy" rel="nofollow">https://huggingface.co/spaces/ThomasSimonini/Huggy</a></li> <li>Click on Play with my Huggy model</li>',M,m,z,P,c,A="<li><p>In step 1, choose your model repository which is the model id (in my case ThomasSimonini/ppo-Huggy).</p></li> <li><p>In step 2, <strong>choose which model you want to replay</strong>:</p></li>",C,f,G="<li>I have multiple ones, since we saved a model every 500000 timesteps.</li> <li>But if I want the most recent one I choose Huggy.onnx</li>",k,y,B="👉 It’s good to <strong>try with different model checkpoints to see the improvement of the agent.</strong>",I,d,E,v,S;return r=new lt({props:{title:"Play with Huggy",local:"play",headingTag:"h1"}}),d=new nt({props:{source:"https://github.com/huggingface/deep-rl-class/blob/main/units/en/unitbonus1/play.mdx"}}),{c(){u=a("meta"),$=n(),w=a("p"),x=n(),F(r.$$.fragment),b=n(),p=a("p"),p.innerHTML=j,T=n(),h=a("p"),h.textContent=O,L=n(),g=a("ul"),g.innerHTML=U,M=n(),m=a("img"),P=n(),c=a("ol"),c.innerHTML=A,C=n(),f=a("ul"),f.innerHTML=G,k=n(),y=a("p"),y.innerHTML=B,I=n(),F(d.$$.fragment),E=n(),v=a("p"),this.h()},l(t){const e=et("svelte-u9bgzb",document.head);u=o(e,"META",{name:!0,content:!0}),e.forEach(i),$=s(t),w=o(t,"P",{}),N(w).forEach(i),x=s(t),R(r.$$.fragment,t),b=s(t),p=o(t,"P",{"data-svelte-h":!0}),_(p)!=="svelte-30ejck"&&(p.innerHTML=j),T=s(t),h=o(t,"P",{"data-svelte-h":!0}),_(h)!=="svelte-1yy8gu"&&(h.textContent=O),L=s(t),g=o(t,"UL",{"data-svelte-h":!0}),_(g)!=="svelte-53p4qe"&&(g.innerHTML=U),M=s(t),m=o(t,"IMG",{src:!0,alt:!0,width:!0}),P=s(t),c=o(t,"OL",{"data-svelte-h":!0}),_(c)!=="svelte-1kx8gb0"&&(c.innerHTML=A),C=s(t),f=o(t,"UL",{"data-svelte-h":!0}),_(f)!=="svelte-1kxz3wq"&&(f.innerHTML=G),k=s(t),y=o(t,"P",{"data-svelte-h":!0}),_(y)!=="svelte-2o8i3a"&&(y.innerHTML=B),I=s(t),R(d.$$.fragment,t),E=s(t),v=o(t,"P",{}),N(v).forEach(i),this.h()},h(){H(u,"name","hf:doc:metadata"),H(u,"content",at),V(m.src,z="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/notebooks/unit-bonus1/load-huggy.jpg")||H(m,"src",z),H(m,"alt","load-huggy"),H(m,"width","100%")},m(t,e){it(document.head,u),l(t,$,e),l(t,w,e),l(t,x,e),Y(r,t,e),l(t,b,e),l(t,p,e),l(t,T,e),l(t,h,e),l(t,L,e),l(t,g,e),l(t,M,e),l(t,m,e),l(t,P,e),l(t,c,e),l(t,C,e),l(t,f,e),l(t,k,e),l(t,y,e),l(t,I,e),Y(d,t,e),l(t,E,e),l(t,v,e),S=!0},p:W,i(t){S||(D(r.$$.fragment,t),D(d.$$.fragment,t),S=!0)},o(t){J(r.$$.fragment,t),J(d.$$.fragment,t),S=!1},d(t){t&&(i($),i(w),i(x),i(b),i(p),i(T),i(h),i(L),i(g),i(M),i(m),i(P),i(c),i(C),i(f),i(k),i(y),i(I),i(E),i(v)),i(u),K(r,t),K(d,t)}}}const at='{"title":"Play with Huggy","local":"play","sections":[],"depth":1}';function ot(q){return X(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pt extends Z{constructor(u){super(),tt(this,u,ot,st,Q,{})}}export{pt as component};
