Skip to content

bbhitec/hugging-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hugging Face Multi-model Utilization

Multi model chaining with HuggingFace transformers pipelines and LangChain interfacing.
Study case: Pick-a-Joke app: "say a quick joke about the given image" using the tools:

  • Image to text generation (model: salesforce/blip-image-captioning-base)
  • Templated prompt text generation using LangChain with OpenAI models
  • Text to speech generation (model: espnet/kan-bayashi_ljspeech_vits)
  • Pipelining HuggingFace models for local use
  • Using HuggingHace Inference APIs to use models remotely via HTTP requests
  • Quick app UI with Streamlit UI
  • Deploying demo app to HuggingFace Spaces

Usage/How to run

Pull and install required packages if needed (or see the demo):

pip install -r requirements.txt

*Additional dependencies may be required
*Additional environment variables may be needed
*Virtual env recommended


[vnik]

About

HuggingFace multi-model chaining

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages