Skip to content

karlosmatos/gpt-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT-GUI

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

Installation

  1. Clone the repository and move to the project directory.
git clone https://github.com/karlosmatos/gpt-gui.git
cd gpt-gui
  1. Install the required Python packages:
pip install -r requirements.txt

Usage

  1. Set your OpenAI API key in the .env file:
OPENAI_API_KEY='your key'
  1. Run the application:
python -m streamlit run app.py

Features

  • 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.

Testing

Tests are located in the tests/ directory. You can run them using pytest:

pytest tests

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

ChatGPT GUI in streamlit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages