A web application for simplifying long text using an AI completion API.
- Enter text into a web-based interface
- Simplify text using a configurable AI model
- Copy the simplified result to the clipboard
- Responsive and user-friendly design
- Install dependencies:
If you are running the GUI version, you can remove
flaskfrom the command below.
python -m pip install flask openai python-dotenv- Create a
.envfile in the project root and set your API values like this:
If you are running the Web app version, you can skip this step.
BASE_URL=https://api.openai.com/v1
API_KEY=your_api_key_here
MODEL=gpt-4o-mini- Optionally edit
prompt.mdto change the simplification instruction.
python app.pyThen open your browser and navigate to http://localhost:5000.
The interface includes:
- Input field to enter or paste text
Simplifybutton to send the text to the API- Output field displaying the simplified text
Copybutton to copy the simplified result to the clipboardClearbutton to reset both input and output fields
python window.pyapp.py— Flask web serverwindow.py- Desktop app built with tkintersimplifier.py— API client and simplification logictemplates/index.html— web interfacestatic/css/index.css— stylingstatic/js/animations.js— frontend animations & visual feedbackstatic/js/logic.js— frontend business logic & backend communicationprompt.md— prompt template used during simplificationsample.txt— example text for testing
- Make sure
BASE_URLandAPI_KEYare set before running the GUI app. - The model selection box is provided in the web app to set up the model in an easier way.