Spaces:
Runtime error
Runtime error
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
- Install python (make sure to add the environment variables and install pip).
- Test python with
python -v
. - Download: https://github.com/lgaleana/gen-ads/zipball/master.
- Get an OpenAI key.
- Set up a project for Google Vision and download the service key https://cloud.google.com/vision/docs/setup.
- Rename the file .env.example to .env and add your OpenAI key and the path to your Google Vision service key.
Execution
- Open the command line and navigate to the
gen-ads
folder. - Run
python main.py
. - Enter an URL and hit enter.
- 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.