https://github.com/patterns-ai-core/image-classifier-demo
https://github.com/patterns-ai-core/image-classifier-demo
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/patterns-ai-core/image-classifier-demo
- Owner: patterns-ai-core
- License: mit
- Created: 2024-10-14T00:01:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-23T18:56:44.000Z (over 1 year ago)
- Last Synced: 2025-02-28T21:08:16.590Z (over 1 year ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://platform.openai.com/api-keys).
### Running
```ruby
bundle exec ruby image-classifier.rb --url=
```
You can try the script with by passing this image URL:
```ruby
bundle exec ruby image-classifier.rb --url="https://gist.githubusercontent.com/andreibondarev/b6f444194d0ee7ab7302a4d83184e53e/raw/db2e55ce2d29f3f6a7e3540e5abfd451c6a3d2a8/sf-cable-car.jpg"
```