Skip to content

Commit

Permalink
Huggingface refactor (#3)
Browse files Browse the repository at this point in the history
* Refactor

* Update README.md

* Fix lint issues and format

* Update style and optimise

* Temporarily disable CI

* Update README.md

* moving server to universal fastify

* minor changes toward pr

* including utils in connector

* removing unused modules from package.json

* Fix openai parts and common

* Fix openai tests and add warn-todo comments

* Fix elevenlabs tests

* Fix ollama test

* Remove useless string

* Fix linter issues

* Fix and update tests structure

* removing fastify

* moving to Timur's architecture

* Add fileIsExist function

* Optimise and update imports/exports

* Add my_ prefix to output file names and oupdate imports

* moving server to universal fastify

* removing unused modules from package.json

* huggingface refactor

---------

Co-authored-by: svmlitimur <[email protected]>
Co-authored-by: Leon Polak <[email protected]>
Co-authored-by: Dmitriy Tselinko <[email protected]>
  • Loading branch information
4 people authored May 16, 2024
1 parent 7e3ff44 commit 39281c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Empty file added index.js
Empty file.
1 change: 1 addition & 0 deletions lib/huggingface/utils/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const audio = (hf) => ({
},

// inputs = 'Hello world!'

async textToSpeech(inputs, model = defaultModels.textToSpeech) {
const args = { inputs, model };
const res = await callAPI(hf, 'hf.textToSpeech', args);
Expand Down

0 comments on commit 39281c8

Please sign in to comment.