Skip to content

nylas-samples/start-hf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get started with Hugging Face

This is a super simple example of using a model via the Hugging Face Hub.

Requirements

  • A Hugging Face API key
  • Node.js 18+
  • npm or equivalent package manager

Setup

  1. Clone the repo
git clone <repo here>
  1. Install the requirements
cd <repo here>
npm install
  1. Create a .env file
touch .env
  1. Add your Hugging Face API key to the .env file
HUGGING_FACE_API_KEY=<your api key here>
  1. Run the script
npm start

Play

You can now play with the model by modifying the prompt constant in index.js.

Repo activity

Repo activity

About

No description or website provided.

Topics

Resources

Code of conduct

Contributing

Stars

5 stars

Watchers

4 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors