Commit Graph

13 Commits

Author SHA1 Message Date
Ikko Eltociear Ashimine 8bb8c5a33c docs: update vanilla-js.md (#738)
minor fix
2024-05-05 23:59:50 +02:00
Per Harald Borgen ef27100553 Add JavaScript tutorial to the docs (#271) 2023-09-17 21:47:09 +02:00
Joshua Lochner 8253dab531 Update node and NPM versions (#294)
node -> 18+
npm -> 9+
2023-09-12 19:17:05 +02:00
Doni Rubiagatra 434dcccac7 [docs] Update minimum node version (16 -> 18) 2023-09-11 13:01:05 +02:00
Joshua Lochner 276bdd06b8 Improve pipeline docs (w/ example code) - closes #134 (#255)
* Add example code for zero shot image classification

* Add example code for text classification pipeline

* Fix links to custom usage from pipelines docs

Reported on discord https://discord.com/channels/879548962464493619/1142943169068154950/1142943169068154950

* Fix relative links

* Rename .mdx -> .md

GitHub recently changed how mdx files are displayed, breaking a lot of the formatting. So, we just use .md now (same as transformers)

* Add example code for token classification pipeline

* Add example code for fill-mask pipeline

* Add text2text and summarization pipeline examples

* Add example code for image segmentation pipeline

* Remove redundant `@extends Pipeline`

* Add example code for image-to-text pipeline

* Cleanup example code outputs

* Cleanup JSDoc

* Cleanup pipeline example code

* Update codegen example
2023-08-22 04:30:56 +02:00
Joshua Lochner d479953a62 [WIP] Add MMS and Wav2Vec2 models (Closes #209) (#220)
* Add example `wav2vec2` models

* Add support for `CTCDecoder` and `Wav2Vec2CTCTokenizer`

* Generate tokenizer.json files for wav2vec2 models

* Fix wav2vec2 custom tokenizer generation

* Implement wav2vec2 audio-speech-recognition

* Add `Wav2Vec2` as a supported architecture

* Update README.md

* Update generate_tests.py

* Ignore invalid tests

* Update supported wav2vec2 models

* Update supported_models.py

* Simplify pipeline construction

* Implement basic audio classification pipeline

* Update default topk value for audio classification pipeline

* Add example usage for the audio classification pipeline

* Move `loadAudio` to utils file

* Add audio classification unit test

* Add wav2vec2 ASR unit test

* Improve generated wav2vec2 tokenizer json

* Update supported_models.py

* Allow `added_tokens_regex` to be null

* Support exporting mms vocabs

* Supported nested vocabularies

* Update supported tasks and models

* Add warnings to ignore language and task for wav2vec2 models

Will add in future

* Mark internal methods as private

* Add typing to audio variable

* Update node-audio-processing.mdx

* Move node-audio-processing to guides

* Update table of contents

* Add example code for performing feature extraction w/ `Wav2Vec2Model`

NOTE: feature extraction of MMS models is currently broken in the python library, but it works correctly here. See
https://github.com/huggingface/transformers/issues/25485 for more info

* Refactor `Pipeline` class params

* Fix `pipeline` function

* Fix typo in `pipeline` JSDoc

* Fix second typo
2023-08-14 22:18:44 +02:00
Joshua Lochner 09ff83b90e Create example next.js application (Closes #210) (#211)
* Create example next app

* Link to example app

* Update next configs

* Create tutorial for next.js application

* Update next.js tutorial

* Rename project `next` -> `next-client`

* Clone `next-server` from `next-client`

* Update next.config.js for server-side inference

* Create basic server-side next.js application

* Update example links

* Update subheading for client-side next.js app

* Update next.config.js files

* Create example Dockerfile

* Update next tutorial to include server-side inference

* Improve wording

* Update Dockerfile

* Add step to create a Dockerfile

* Update examples snippet

* Fix wording
2023-07-26 01:48:13 +02:00
Joshua Lochner 27d7ea489b Improvements to documentation (#172)
* link to the conversion Space for maximum simplicity

* add some types to script (very optional)

* typo

* no need for trailing slash here

* Node is also a valid option

* Document how to find a compatible checkpoint on the hub

* Update README

* Fix typing

* Update docs index

---------

Co-authored-by: Julien Chaumond <julien@huggingface.co>
2023-06-29 19:32:17 +02:00
Joshua Lochner d90f58110a Add whisper unit tests (#155)
* Only run encoder with required inputs

* Add basic whisper unit tests

* Add newline after heading for docs

* Add unit test for transcribing english with timestamps

* Add multilingual test case
2023-06-21 23:58:16 +02:00
Joshua Lochner 573012b434 [docs] Add tutorial + example app for server-side whisper (#147)
* Update typo in node tutorial

* Create node audio processing tutorial

* Point to tutorial in `read_audio` function

* Rename `.md` to `.mdx`

* Add node audio processing tutorial to table of contents

* Add link to model in tutorial

* Update error message grammar
2023-06-20 23:10:33 +02:00
Joshua Lochner 55d6ef41b3 [docs] Fix numbering 2023-05-29 17:49:46 +02:00
Joshua Lochner 75ec68ed8b Create example Node.js application 2023-05-17 12:34:48 +02:00
Joshua Lochner a73e8559b8 Add docs folder 2023-05-13 19:59:18 +02:00