mirror of
https://github.com/runyanjake/memechain.git
synced 2025-10-04 15:57:28 -07:00
41 lines
681 B
Markdown
41 lines
681 B
Markdown
# 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.
|
|
|
|

|
|
|
|
## Setup
|
|
|
|
### Python
|
|
|
|
```bash
|
|
python -m venv env
|
|
source env/bin/activate
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
Update config.json with your imgflip username and password.
|
|
Example:
|
|
```json
|
|
{
|
|
"username": "your_username",
|
|
"password": "your_password"
|
|
}
|
|
```
|
|
|
|
```bash
|
|
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
|
|
```
|
|
|
|
|