sitcod3's picture
Upload folder using huggingface_hub (part 7)
3dc4fef verified
Raw History Blame
209 Bytes
function a(o,r){let t=o(),n=new Set;return{getSnapshot(){return t},subscribe(e){return n.add(e),()=>n.delete(e)},dispatch(e,...s){let i=r[e].call(t,...s);i&&(t=i,n.forEach(c=>c()))}}}export{a as createStore};