toolkit-ads-gen / README.md
lgaleana's picture
Update readme
4ef5c66
|
raw
history blame
1.42 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). a. Windows: https://www.digitalocean.com/community/tutorials/install-python-windows-10#step-1-downloading-the-python-installer.
  2. Test pythong with python -v.
  3. Download: https://github.com/lgaleana/gen-ads/zipball/master.

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 does it work:

The program executes the following AI and code tasks, one after the other:

  1. (Code) get_text_from_url: Function generated by ChatGPT-4, that extracts text from an URL.
  2. (AI) get_headlines: From the text, generates headlines.
  3. (AI) generate_prompt: From text, generates a prompt to generate an image.
  4. (AI) image.urls: Generates AI images.

How to tune it:

Update the prompts of the AI tasks.