Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.8 KB

File metadata and controls

50 lines (36 loc) · 1.8 KB

Custom ChatGPT

A custom ChatGPT-like web application using OpenAI API, Python, and Streamlit.

Overview

This project is a simple ChatGPT-like application built with Streamlit and OpenAI's API. It provides an interactive chat interface where users can enter prompts and receive AI-generated responses using the gpt-4o model.

You can access the deployed custom ChatGPT-like application here, using your own OpenAI API key.

You might also like to read the tutorial-style step-by-step guide I wrote, on how I built this custom ChatGPT Plus-like application.

Features

  • Interactive chat interface powered by Streamlit.
  • Uses OpenAI's GPT-4o model for responses.
  • Secure API key input for accessing OpenAI API.
  • Maintains chat history within a session.

Prerequisites

To run this project, ensure you have:

  • Python 3.8 or higher installed
  • An OpenAI API key (You can obtain an API key by signing up at OpenAI's platform and navigating to the API Keys section.)

Installation

Clone the repository and install the required dependencies:

pip install -r requirements.txt

Usage

Run the Streamlit application with the following command:

streamlit run app.py

Once the app is running:

  1. Enter your OpenAI API key when prompted.
  2. Type your message in the chat input field.
  3. Receive AI-generated responses in real time.

Files

  • README.md : Documentation for the project.
  • app.py : Main script containing the Streamlit chat application.
  • requirements.txt : List of dependencies required for the project.

Acknowledgements

  • OpenAI for providing the API.
  • Streamlit for the interactive UI framework.