Spaces:
Runtime error
Runtime error
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). a. Windows: https://www.digitalocean.com/community/tutorials/install-python-windows-10#step-1-downloading-the-python-installer.
- Test pythong with
python -v
. - Download: https://github.com/lgaleana/gen-ads/zipball/master.
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 does it work:
The program executes the following AI and code tasks, one after the other:
- (Code) get_text_from_url: Function generated by ChatGPT-4, that extracts text from an URL.
- (AI) get_headlines: From the text, generates headlines.
- (AI) generate_prompt: From text, generates a prompt to generate an image.
- (AI) image.urls: Generates AI images.
How to tune it:
Update the prompts of the AI tasks.