A script that empowers a user to upload a document and ask questions of ChatGPT for document analysis.
Compatible with Windows, Linux and MacOS.
- If you don't already have Python 3 installed, you can download it from the official Python website.
- In order to run the script, you need to have the following libraries installed:
tkinter
,openai
, andpywin32
. You can install them using the following command in the terminal or command prompt:
pip install tkinter openai pywin32
- You can get the API key by signing up for an OpenAI account (https://beta.openai.com/signup/).
- Create a file called api_key.gpt and save your API key in the file.
- You can download the script from the source.
- In the terminal or command prompt, navigate to the location where you saved the script and run the following command:
python3 script.py
Once the script is running, you will see a borderless window with a splash screen and a main menu. You can use the following features: Upload a document: Allows you to upload a document, either txt, doc, or xls, from your computer into your local memory so that ChatGPT can be queried.
- Ask a question: Allows you to ask ChatGPT a question directly.
- View results: Allows you to review the latest results.
- View API Key: Allows you to view the locally stored API key.
- Quit: Allows you to quit back to the command prompt.