A simple web application that generates text using a local LLM through Ollama. Write blog posts, stories, tweets, and more without relying on external APIs.
- Text generation using local LLM (Mistral)
- Multiple content types (blog, tweet, story, article)
- Temperature control for creativity adjustment
- Loading indicator during generation
- Clean, modern UI
- Local output logging
- Install Ollama
- Pull the Mistral model:
ollama pull mistral- Python 3.6+ installed
- Make sure Ollama is running and the Mistral model is installed
- Start the Python server:
python server.py- Open your browser and navigate to
http://localhost:8080
- Select the type of content you want to generate
- Enter your prompt
- Adjust the temperature if desired (higher = more creative, lower = more focused)
- Click "Generate" and wait for the results
- View your generated content
- Check outputs.txt for a log of all generations
- Frontend: HTML, CSS, JavaScript
- Local LLM: Ollama with Mistral model
- Server: Python HTTP Server
- Logging: Local file system (outputs.txt)
-
Make sure Ollama is running:
- Windows: Check Task Manager
- Linux/Mac:
ps aux | grep ollama
-
Verify Mistral model is installed:
ollama list- Common issues:
- "Failed to generate text": Make sure Ollama is running
- "Connection refused": Check if the server is running on port 8080
- No output: Check browser console for errors
This app uses the Mistral model through Ollama for local inference. Mistral is a powerful open-source language model that offers a good balance between performance and resource usage.