Harrison/add huggingface hub (#23)

Add support for huggingface hub

I could not find a good way to enforce stop tokens over the huggingface
hub api - that needs to hopefully be cleaned up in the future
This commit is contained in:
Harrison Chase
2022-10-25 22:00:33 -07:00
committed by GitHub
parent 316aae8223
commit 020c42dcae
11 changed files with 228 additions and 28 deletions

View File

@@ -38,6 +38,9 @@ The following use cases require specific installs and environment variables:
- *Cohere*:
- Install requirements with `pip install cohere`
- Set the following environment variable: `COHERE_API_KEY`
- *HuggingFace Hub*
- Install requirements with `pip install huggingface_hub`
- Set the following environment variable: `HUGGINGFACEHUB_API_TOKEN`
- *SerpAPI*:
- Install requirements with `pip install google-search-results`
- Set the following environment variable: `SERPAPI_API_KEY`