toolkit-ads-gen / README.md
lgaleana's picture
Improve to v0
739e67a
|
raw
history blame
1.06 kB

Ads generation tool

Give an URL, generate headlines and images for ads.

Installation

  1. Install python (make sure to add the environment variables and install pip).
  1. Test python with python -v.
  2. Download: https://github.com/lgaleana/gen-ads/zipball/master.
  3. Get an OpenAI key.
  4. Set up a project for Google Vision and download the service key https://cloud.google.com/vision/docs/setup.
  5. Rename the file .env.example to .env and add your OpenAI key and the path to your Google Vision service key.

Execution

  1. Open the command line and navigate to the gen-ads folder.
  2. Run python main.py.
  3. Enter an URL and hit enter.
  4. Get ad headlines and images for the URL.

How it works

The program executes the AI and code tasks in: https://github.com/lgaleana/gen-ads/blob/main/control_flow/main.py

How to tune

Update the prompts of the AI tasks.