This application provides a simple interface for checking grammar and spelling in text inputs. It leverages a open source large language model for processing and correcting text, making it ideal for professionals seeking to enhance their written communication while retaining privacy and ownership of their created content.
The Tech Writer communicates with Ollama, an open source LLM runtime environment that provides a standardized API interface for various open source models.
The app is designed to correct spelling and grammar errors, improve clarity, and enhance the conciseness of professional communication. It's particularly useful for writers, editors, content creators, and anyone who values precision in written English.
- Python 3.8 or later
- Ollama, installed on your host computer
- Download and install Python from python.org.
- Install Streamlit and other required modules:
$ pip install streamlit requests
- Python is typically pre-installed on Linux and macOS. If not, install Python using your distribution's package manager (Linux) or download from python.org (macOS).
- Install Streamlit and other required modules:
$ pip3 install streamlit requests
Note: The following installation instructions assume the use of Ollama that is installed on Windows, MacOS and Linux systems.
After you install Ollama, proceed with the following instructions.
- Pull the Google Gemma LLM using Ollama CLI:
$ ollama pull model gemma:7b
- Create the
tech-writer
model with yourtech-writer
Modelfile. Place your Modelfile in the directory and run:
$ ollama create tech-writer --file tech-writer.Modelfile
From the command line, run:
$ streamlit run tech-writer.py
After launching the application, simply enter the text you wish to check in the provided text area and click "Check Syntax."