Skip to content

This Python code utilizes various library to create a chat interface where users can interact with an AI assistant powered by OpenAI's GPT-3.5 model. This code uses OpenAI's API to process user input and generate AI responses. It showcases PyQt5 GUI toolkits for desktop interfaces and Gradio for web-based interaction.

Notifications You must be signed in to change notification settings

Stephen5421/CORTEX_AI_ASSISTANT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

AI Chat Interface using OpenAI GPT-3.5

🚀 Overview

This project demonstrates a chat interface that allows users to interact with an AI assistant powered by OpenAI's GPT-3.5 model. It supports both desktop (using PyQt5) and web-based (using Gradio) interfaces for a seamless user experience.

🛠 Technologies Used

  • OpenAI API - For generating AI responses
  • Python - Core programming language
  • PyQt5 - GUI toolkit for desktop applications
  • Gradio - Web-based interface for easy AI interaction

📌 Features

  • Dual interface support: Desktop (PyQt5) & Web (Gradio)
  • User-friendly chat UI
  • Real-time AI responses powered by GPT-3.5
  • Lightweight and easy to set up

🔧 Installation

Prerequisites:

Ensure you have Python 3.8+ installed.

Steps:

  1. Clone this repository:
    git clone https://github.com/yourusername/your-repo.git
    cd your-repo
  2. Install dependencies:
    pip install -r requirements.txt
  3. Set up your OpenAI API key:
    export OPENAI_API_KEY="your_api_key_here"

🚀 Usage

Run the Desktop Application (PyQt5)

python pyqt_chat.py

Run the Web Application (Gradio)

python gradio_chat.py

🎨 UI Preview

PyQt5 Desktop Interface

Gradio Web Interface

💡 Future Enhancements

  • Add support for voice-based interactions
  • Improve UI design with themes and customization
  • Implement persistent chat history
  • Optimize performance for large conversations

🤝 Contributing

Feel free to submit issues and pull requests. Contributions are always welcome!

📜 License

This project is licensed under the MIT License.


⭐ If you found this project useful, consider giving it a star on GitHub!

About

This Python code utilizes various library to create a chat interface where users can interact with an AI assistant powered by OpenAI's GPT-3.5 model. This code uses OpenAI's API to process user input and generate AI responses. It showcases PyQt5 GUI toolkits for desktop interfaces and Gradio for web-based interaction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages