Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,76 +3,80 @@ title: AI Meme Generator
|
|
| 3 |
emoji: π₯Έ
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
-
sdk:
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# π₯Έ AI Meme Generator
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
##
|
| 16 |
|
| 17 |
-
|
| 18 |
-
-
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
- β‘ Real-time status updates
|
| 22 |
-
- π³ Dockerized for Python 3.11 compatibility
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
1. Get a **free** token from [HuggingFace Tokens](https://huggingface.co/settings/tokens)
|
| 29 |
-
2. Go to your Space **Settings** β **Repository Secrets**
|
| 30 |
-
3. Add new secret:
|
| 31 |
-
- **Name**: `HF_TOKEN`
|
| 32 |
-
- **Value**: Your token (starts with `hf_...`)
|
| 33 |
-
4. Restart the Space
|
| 34 |
|
| 35 |
## π― Usage
|
| 36 |
|
| 37 |
-
1.
|
| 38 |
2. Select AI model (Llama 3.2 3B recommended)
|
| 39 |
-
3. Click "Generate
|
| 40 |
4. Wait 30-90 seconds
|
| 41 |
5. Download your meme!
|
| 42 |
|
| 43 |
## π οΈ Tech Stack
|
| 44 |
|
| 45 |
-
-
|
| 46 |
-
-
|
| 47 |
-
-
|
| 48 |
-
-
|
| 49 |
-
-
|
|
|
|
| 50 |
|
| 51 |
## π¦ Files
|
| 52 |
|
| 53 |
-
- `
|
| 54 |
-
- `app.py` - Main application code
|
| 55 |
- `requirements.txt` - Python dependencies
|
| 56 |
-
- `
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
## β οΈ Important
|
| 59 |
|
| 60 |
-
-
|
| 61 |
-
-
|
| 62 |
-
-
|
| 63 |
-
-
|
| 64 |
|
| 65 |
## π Troubleshooting
|
| 66 |
|
| 67 |
-
|
| 68 |
-
-
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
| 71 |
|
| 72 |
## π License
|
| 73 |
|
| 74 |
-
MIT License
|
| 75 |
|
| 76 |
---
|
| 77 |
|
| 78 |
-
Made with β€οΈ using HuggingFace
|
|
|
|
| 3 |
emoji: π₯Έ
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
+
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
+
python_version: 3.11
|
| 12 |
---
|
| 13 |
|
| 14 |
# π₯Έ AI Meme Generator
|
| 15 |
|
| 16 |
+
AI-powered meme creation using browser automation!
|
| 17 |
|
| 18 |
+
## β‘ Quick Setup
|
| 19 |
|
| 20 |
+
1. **Get HuggingFace Token**
|
| 21 |
+
- Go to: https://huggingface.co/settings/tokens
|
| 22 |
+
- Create new token with 'read' permission
|
| 23 |
+
- Copy the token (starts with `hf_...`)
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
2. **Add Token to Space**
|
| 26 |
+
- Go to Space Settings
|
| 27 |
+
- Click "Repository Secrets"
|
| 28 |
+
- Add secret:
|
| 29 |
+
- Name: `HF_TOKEN`
|
| 30 |
+
- Value: (paste your token)
|
| 31 |
+
- Save
|
| 32 |
|
| 33 |
+
3. **Restart Space**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
## π― Usage
|
| 36 |
|
| 37 |
+
1. Describe your meme idea
|
| 38 |
2. Select AI model (Llama 3.2 3B recommended)
|
| 39 |
+
3. Click "Generate"
|
| 40 |
4. Wait 30-90 seconds
|
| 41 |
5. Download your meme!
|
| 42 |
|
| 43 |
## π οΈ Tech Stack
|
| 44 |
|
| 45 |
+
- Python 3.11
|
| 46 |
+
- Gradio 4.44
|
| 47 |
+
- Browser-Use 0.8.1
|
| 48 |
+
- LangChain
|
| 49 |
+
- Playwright
|
| 50 |
+
- HuggingFace Inference API
|
| 51 |
|
| 52 |
## π¦ Files
|
| 53 |
|
| 54 |
+
- `app.py` - Main application
|
|
|
|
| 55 |
- `requirements.txt` - Python dependencies
|
| 56 |
+
- `packages.txt` - System dependencies
|
| 57 |
+
- `.python-version` - Python version
|
| 58 |
+
- `README.md` - Documentation
|
| 59 |
|
| 60 |
+
## β οΈ Important
|
| 61 |
|
| 62 |
+
- Uses Python 3.11 (required for browser-use)
|
| 63 |
+
- Free tier has rate limits
|
| 64 |
+
- Generation takes 30-90 seconds
|
| 65 |
+
- Requires HF_TOKEN in secrets
|
| 66 |
|
| 67 |
## π Troubleshooting
|
| 68 |
|
| 69 |
+
| Issue | Solution |
|
| 70 |
+
|-------|----------|
|
| 71 |
+
| Build fails | Check all files are committed |
|
| 72 |
+
| Token error | Verify HF_TOKEN in Secrets |
|
| 73 |
+
| Rate limit | Wait 60 seconds |
|
| 74 |
+
| Timeout | Use Llama 3.2 3B model |
|
| 75 |
|
| 76 |
## π License
|
| 77 |
|
| 78 |
+
MIT License
|
| 79 |
|
| 80 |
---
|
| 81 |
|
| 82 |
+
Made with β€οΈ using HuggingFace
|