Skip to content

patterns-ai-core/image-classifier-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-classifier-demo

Simple demo for building image classification by utilizing Langchain.rb, LLMs and function calling.

Installation

  1. git clone
  2. bundle install
  3. cp .env.example .env and fill it out with OpenAI API key.

Running

bundle exec ruby image-classifier.rb --url=<your-image-url>

You can try the script with by passing this image URL:

bundle exec ruby image-classifier.rb --url="https://gist.githubusercontent.com/andreibondarev/b6f444194d0ee7ab7302a4d83184e53e/raw/db2e55ce2d29f3f6a7e3540e5abfd451c6a3d2a8/sf-cable-car.jpg"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages