toolkit-ads-gen / README.md
lgaleana's picture
NIT
d0e06f7
|
raw
history blame
1.21 kB
metadata
title: Toolkit - Ads generator
emoji: 😎
colorFrom: red
colorTo: red
sdk: gradio
sdk_version: 3.32.0
app_file: gradio_app.py
pinned: false

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.