xenova / transformers.js

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
https://huggingface.co/docs/transformers.js
Apache License 2.0
9.87k stars 582 forks source link

Update worker.js - fix TTS example #686

Closed flatsiedatsie closed 2 months ago

flatsiedatsie commented 2 months ago

I added the dtype: 'fp32', tip you gave me earlier, so the example should then work again.

xenova commented 2 months ago

Please note that this will only work with transformers.js v3, which is still in development. I'll update the branch for this PR and merge into v3.

flatsiedatsie commented 2 months ago

Thanks!

xenova commented 2 months ago

Done! :)