Skip to content

KumarAman02/Chat-Code-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Code-Interpreter Application

Overview

  • This project is a Chat Code-Interpreter application built using OpenAI's GPT-3.5-turbo model for natural language understanding and generation. The application provides a chat interface where users can upload CSV files and execute Python code on the data within those files. The UI is developed using Chainlit, a lightweight Python library for creating interactive chat interfaces.

Features

  • Chat Interface: Users interact with the application through a text-based chat interface.
  • File Upload: Users can upload CSV files, which are then processed by the application.
  • Python Code Execution: Users can enter Python code snippets to manipulate the uploaded CSV data.
  • Output Display: The application displays the output generated by executing the user-provided Python code.

Technologies Used

  • OpenAI API: Utilized for natural language understanding and generation.
  • Chainlit: Used for creating the chat interface.
  • Python: The backend logic of the application is implemented in Python.
  • Pandas: Utilized for handling CSV data.
  • python-dotenv: Used for loading environment variables.

Usage

1.Installation

  • Clone this repository to your local machine.
  • Install the required dependencies using pip: pip install -r requirements.txt

2.Configuration

  • Create a .env file in the root directory of the project.
  • Add your OpenAI API key to the .env file: OPENAI_API_KEY=<your-api-key>

3.Running the Application

  • Run the application using the following command: chainlit run app.py
  • The application will start and provide a URL where you can access the chat interface.

4.Using the Application

  • Upon accessing the chat interface, you can begin by uploading a CSV file.
  • Once the file is uploaded, you can enter Python code snippets to manipulate the data.
  • The application will execute the code and display the output in the chat interface.

Notes

  • This application is built using OpenAI's GPT-3.5-turbo model and does not rely on any pre-built assistants or frameworks.
  • All code execution and interaction are handled through custom Python code, leveraging OpenAI's completions/chat APIs directly.

License

No License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published