A web-based Minion chatbot that speaks in Minionese, powered by Llama (local via Ollama or cloud via Groq). Includes minion-style TTS and a simple web UI.
- Install Ollama and run:
ollama pull llama3.2 - Install FFmpeg and SoX (for minion voice). On Windows, set paths in env if needed.
- Install deps and run:
pip install -r requirements.txt
python app.py- Get a free API key at console.groq.com/keys
- Set it and run:
pip install -r requirements.txt
set GROQ_API_KEY=your_key_here
python app.pyYou can host the app on the web so anyone can chat with the Minion. The app runs in Docker on Render.com (free tier) and uses Groq’s free Llama API (no GPU or Ollama on the server).
- Create a new repo on GitHub (e.g.
minion-chat). - In your project folder:
git init
git add app.py index.html requirements.txt Dockerfile .dockerignore render.yaml .env.example README.md
git add minion.png
git commit -m "Minion Chat web app"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/minion-chat.git
git push -u origin main(Replace YOUR_USERNAME and minion-chat with your repo. Add minion.png only if you have one.)
- Go to dashboard.render.com and sign in with GitHub.
- New → Web Service.
- Connect the minion-chat (or your repo) and confirm:
- Runtime: Docker
- Dockerfile path:
./Dockerfile(or leave default)
- Under Environment, add:
- Key:
GROQ_API_KEY - Value: your Groq API key from console.groq.com/keys
- Key:
- Click Create Web Service. Render will build the Docker image (installs FFmpeg + SoX) and start the app.
- When it’s live, open the URL Render gives you (e.g.
https://minion-chat.onrender.com).
That URL is your web-based Minion app running on GitHub (code) + Render (hosting) with the Llama model via Groq.
The repo includes a render.yaml so you can use Blueprint deploy: in Render, New → Blueprint and point it at your repo. You still need to set GROQ_API_KEY in the Render dashboard for the service.
| Variable | Used when | Description |
|---|---|---|
GROQ_API_KEY |
Web / cloud | Groq API key (get at console.groq.com). If set, the app uses Groq instead of Ollama. |
GROQ_MODEL |
Optional | Groq model (default: llama-3.3-70b-versatile). |
OLLAMA_HOST |
Local | Ollama URL (default: http://127.0.0.1:11434). |
OLLAMA_MODEL |
Local | Ollama model (default: llama3.2). |
FFMPEG_PATH |
Optional | Path to FFmpeg (auto on Linux/Docker). |
SOX_PATH |
Optional | Path to SoX (auto on Linux/Docker). |
Copy .env.example to .env and fill in values if you want to use a local env file.
- Llama-powered replies: Local (Ollama) or cloud (Groq), always in Minionese.
- Minion voice: TTS with pitch/tempo effects (gTTS → FFmpeg → SoX).
- Short, in-character answers: Keyword-style Minion replies; fallback phrases if the model sounds too “English”.
- Web UI: Single-page chat; optional name; works in the browser on your machine or on Render.
Use and modify as you like. Minion/Despicable Me are trademarks of Universal/Illumination; this project is a fan app, not affiliated with them.