Skip to content

RoboticBuilders/descriptiongen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

descriptiongen: Automatically generate descriptions for paintings

How It Works

First, the program gets the image(saved locally) called image.png, and prompts Google Bard to describe the image using it's image tools. This program uses the bardapi library, which allows you to prompt Bard for free.

Installing bardapi

The following instructions are applicable only to Windows

  • Open a new terminal, and type pip install bardapi
  • To check that it installed, type bardapi --version

API Keys

Generating API Keys

  • Go to bard.google.com
  • Open the Devtools/Application tab
  • Go to Storage/Cookies/https://bard.google.com
  • In the right panel, find Secure 1-PSID
  • Copy the value and paste it into the token parameter for the Bard() definition function

If The API Key Doesn't Work

  • Clear Browsing History for All Time
  • Repeat the instructions above
  • If it still doesn't work, generate the API key for a new account

How API Keys Work

The API keys are unique for each user, and often every session. Therefore, they have to often be regenerated. Different accounts will require you to regenerate the API key and repeat all the steps above.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages