-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gguf: Fix ArrayBuffer.resize not supported on Firefox (#638)
`ArrayBuffer.resize()` is not supported on Firefox. This causes the error while visualizing gguf: ![image](https://github.com/huggingface/huggingface.js/assets/7702203/9b159123-d42f-4380-b217-64ea66204c51) This PR introduces a small patch that uses a polyfill in case `ArrayBuffer.resize()` cannot be used. Tested on Firefox and Chrome. --------- Co-authored-by: Mishig <[email protected]> Co-authored-by: Mishig Davaadorj <[email protected]>
- Loading branch information
1 parent
eb7fba6
commit 7574796
Showing
1 changed file
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters