Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** GraphAI**

Python Version Streamlit


Table of Contents


Overview

The Interactive Vehicle Distribution Plotter is a web application built using Streamlit, LangChain, and Plotly. It allows users to generate interactive plots based on natural language descriptions of data. The app takes user input, processes it with a language model, and automatically generates a Plotly chart visualizing the dataset, which is loaded from a CSV file.

The app is designed to assist in visualizing the distribution of vehicle data, with user-friendly input and robust error handling.


Features

  • Natural Language Processing: Converts user input into Python code for generating plots using Plotly.
  • Interactive Plotting: Generates interactive charts based on dataset columns.
  • Streamlit Interface: Easy-to-use web UI for quick interaction.
  • Error Handling: Alerts users to any issues with input or code execution.
  • Model-Based Code Generation: Uses a pre-trained language model to create code for the desired plot.

Installation

1. Clone the Repository

git clone https://github.com/your-username/interactive-vehicle-distribution-plotter.git
cd interactive-vehicle-distribution-plotter

2. Create and Activate a Virtual Environment

python3 -m venv venv
source venv/bin/activate

3. Install Dependencies

pip install -r requirements.txt

Usage

1. Run the script

streamlit run app.py

2. Input Description

"Plot the graph corresponding to the natural language query."

3. View the Generated Plot

"Once you click on the Generate Plot button, the app will process the description and generate a corresponding plot based on the dataset (Damage.csv)."

Configuration

1. Configure the Dataset

"Show all employees earning above $50,000."

License

This project is licensed under the GNU General Public License (GPL). See the LICENSE file for more details.

Sample Results

Examples

Result: Graph Graph

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages