memechain

So the idea here is to make an llm agent with tools that use https://imgflip.com/api to turn natural language into a meme.

memechain

Setup

Python

python -m venv env
source env/bin/activate
pip install -r requirements.txt

Update config.json with your imgflip username and password. Example:

{
    "username": "your_username",
    "password": "your_password"
}
python main.py

Ollama

Note we are using the langchain-ollama python package (see requirements).
Pull model

ollama pull llama3

If failing, check status of ollama process:

sudo service ollama status
Description
So the idea here is to make an llm agent with tools that use https://imgflip.com/api to turn natural language into a meme.
Readme 40 KiB
Languages
Python 100%