A local Streamlit app that uses a browser automation agent to generate memes on ImgFlip. Users enter a meme idea, choose a model provider, and the app drives a browser to select a template, add captions, generate the meme, and show the resulting image link.
- Streamlit web UI for entering meme ideas.
- Supports Claude, DeepSeek, and OpenAI model providers.
- Reads API keys from
.envor from the Streamlit sidebar. - Uses
browser-useand Playwright to automate ImgFlip. - Displays the generated meme preview and direct image URL.
ai_meme_generator_agent_browseruse/
app.py
requirements.txt
.env.example
run.ps1
run.sh
- Python 3.10 or 3.11
- Network access to ImgFlip, Playwright browser downloads, and your selected model provider
- One API key for the model provider you choose:
OPENAI_API_KEYANTHROPIC_API_KEYDEEPSEEK_API_KEY
cd ai_meme_generator_agent_browseruse
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m playwright install
Copy-Item .env.example .envFill in the matching key in .env, or enter it in the app sidebar at runtime.
Windows PowerShell:
.\run.ps1macOS/Linux:
chmod +x run.sh
./run.shOr run Streamlit directly:
python -m streamlit run app.pyThen open the local URL shown by Streamlit, usually http://localhost:8501.
Do not commit .env, API keys, Streamlit secrets, virtual environments, caches, or logs. The repository includes .env.example only as a template.