Skip to content

iitbmartian/llm-descriptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM Descriptor

This repository uses Google Gemini API for object descriptions.
Follow the steps below to set up your environment and get started.


Prerequisites

  • Python 3.8 or later
  • pip (Python package manager)
  • A Google account

Getting a Gemini API Key

  1. Go to the Google AI Studio.
  2. Sign in with your Google account.
  3. Navigate to the API Keys section.
  4. Click Create API key.
  5. Copy your new API key.

Note: Make sure your API key is in a .env file named as GEMINI_API_KEY.


How to Run

python3 llm_descriptor YOUR_IMAGE_FILEPATH

Example Results

Example 1

Input Image:
Test Image 1

Result:
Result 1


Example 2

Input Image:
Test Image 2

Result:
Result 2


Example 3

Input Image:
Alt_text

Result:
Alt_text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages