GPT-GUI is a Python application that provides a graphical user interface for interacting with OpenAI's GPT models. It uses the Streamlit library for the UI and the OpenAI API for generating responses.
Nahravka.obrazovky.2023-12-18.v.13.46.25.mp4
- Clone the repository and move to the project directory.
git clone https://github.com/karlosmatos/gpt-gui.git
cd gpt-gui
- Install the required Python packages:
pip install -r requirements.txt
- Set your OpenAI API key in the .env file:
OPENAI_API_KEY='your key'
- Run the application:
python -m streamlit run app.py
- Choose between different GPT models.
- Maintain a chat history with the AI.
- Calculate the cost of the conversation based on the number of tokens used.
Tests are located in the tests/ directory. You can run them using pytest:
pytest tests
This project is licensed under the MIT License. See the LICENSE file for details.