A Python program for correcting spelling and grammar in clipboard content utilizing GPT-4.
ctrl-c-gpt-v-1080p.mov
If you press the 'rewrite' button, all content on your clipboard will be sent to OpenAI through their API. Make sure you have no sensitive data on the clipboard.
- Clone this repository.
- Add your OpenAI API key to the environment variable OPENAI_API_KEY, or, although not recommended, you can add it directly to App.py.. Currently, access to GPT-4 and API calls requires a subscription to the paid GPT version.
- Install dependencies (use a virtual environment!)
pip install -r requirements.txt
- Run
App.py
with your Python interpreter. - Select a portion of text within a browser or an editor, and copy it to your clipboard. Anticipate the appearance of two buttons.
⚠️ By selecting 'Rewrite', the content will be transmitted to OpenAI and the original content on your clipboard will be replaced.⚠️
You can then paste the improved version.
Ctrl+C --> GPT-4 --> Ctrl+V
(Naturally, utilize the command key in place of Ctrl if you are using MacOS)