A simple Python app for simplifying long text using an AI completion API.
- Paste or type long text into a resizable GUI
- Simplify text using a configurable AI model
- Copy the simplified result back to the clipboard
- Includes both a GUI mode and a CLI mode
- Install dependencies:
python -m pip install openai python-dotenv- Create a
.envfile in the project root and set your API values:
BASE_URL=https://api.openai.com/v1
API_KEY=your_api_key_here
MODEL=gpt-4o-mini
LOOP=FalseNote: LOOP determines whether the commandline.py runs once or continuously.
- Optionally edit
prompt.mdto change the simplification instruction.
python window.pyThe GUI includes:
Pasteto load clipboard textSimplifyto send the text to the APICopy Simplified Textto copy output back to the clipboard
The output pane also includes setup instructions by default.
python commandline.pyEnter text at the prompt, and the app will print a simplified version.
Note: The CLI has some issues unsolved. It may crash when processing long text. To have a better experience, please use the GUI version.
commandline.py— command-line entry pointwindow.py— Tkinter GUI window implementationsimplifier.py— API client and simplification logicprompt.md— prompt template used during simplificationsample.txt— example text for testing
- Make sure
BASE_URLandAPI_KEYare set before running the app. - The GUI is designed with responsive vertical layout and clipboard actions.