From 02dc88348931154a89716730da07075067c9624a Mon Sep 17 00:00:00 2001 From: Madhu Date: Sun, 26 Jan 2025 23:12:45 +0530 Subject: [PATCH] added readme and requirements.txt --- .../ai_meme_generator_browseruse/README.md | 51 +++++++++++++++++++ .../requirements.txt | 5 ++ 2 files changed, 56 insertions(+) diff --git a/ai_agent_tutorials/ai_meme_generator_browseruse/README.md b/ai_agent_tutorials/ai_meme_generator_browseruse/README.md index e69de29..a5f9ab9 100644 --- a/ai_agent_tutorials/ai_meme_generator_browseruse/README.md +++ b/ai_agent_tutorials/ai_meme_generator_browseruse/README.md @@ -0,0 +1,51 @@ +# 🤖 AI Meme Generator Agent - Browser Automation + +The AI Meme Generator Agent is a powerful browser automation tool that creates memes using AI agents. This app combines multi-LLM capabilities with automated browser interactions to generate memes based on text prompts through direct website manipulation. + +## Features + +- **Multi-LLM Support** + - Claude 3.5 Sonnet (Anthropic) + - GPT-4o (OpenAI) + - Deepseek v3 (Deepseek) + - Automatic model switching with API key validation + +- **Browser Automation**: + - Direct interaction with imgflip.com meme templates + - Automated search for relevant meme formats + - Dynamic text insertion for top/bottom captions + - Image link extraction from generated memes + +- **Smart Generation Workflow**: + - Action verb extraction from prompts + - Metaphorical template matching + - Multi-step quality validation + - Automatic retry mechanism for failed generations + +- **User-Friendly Interface**: + - Model configuration sidebar + - API key management + - Direct meme preview with clickable links + - Responsive error handling + + +API keys required: +- **Anthropic** (for Claude) +- **Deepseek** +- **OpenAI** (for GPT-4o) + +## How to Run + +1. **Clone the Repository**: + ```bash + git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git + cd ai_agent_tutorials/ai_meme_generator_browseruse + ``` +2. **Install the dependencies**: + ```bash + pip install -r requirements.txt + ``` +3. **Run the Streamlit app**: + ```bash + streamlit run ai_meme_generator.py + ``` \ No newline at end of file diff --git a/ai_agent_tutorials/ai_meme_generator_browseruse/requirements.txt b/ai_agent_tutorials/ai_meme_generator_browseruse/requirements.txt index e69de29..2c52e5a 100644 --- a/ai_agent_tutorials/ai_meme_generator_browseruse/requirements.txt +++ b/ai_agent_tutorials/ai_meme_generator_browseruse/requirements.txt @@ -0,0 +1,5 @@ +streamlit +langchain-openai +langchain-anthropic +asyncio +re