This project demonstrates the use of the Dash framework to create an interactive web application for visualizing and analyzing world GDP data. The application integrates the Plotly library for data visualization and utilizes the OpenAI GPT-3 model for natural language processing interactions. Users can explore world GDP data, visualize it on a choropleth map, ask questions using a chat interface, and even compare GDP values of multiple countries over time using line charts.
- Clone this repository to your local machine.
git clone https://github.com/akshitagupta15june/WorldGDP-Analysis-using-ChatGPT.git
cd WorldGDP-Analysis-using-ChatGPT
Install the required dependencies using pip.
pip install pandas plotly dash openai
Replace 'YOUR_OPENAI_API_KEY_HERE' with your actual OpenAI API key in the app.layout section of the app.py file.
- Run the Dash app locally:
python app.py
python app.py
Open a web browser and navigate to http://127.0.0.1:8050/ to access the application.
Choropleth Map: Visualize world GDP data on an interactive choropleth map.
Color Scale Selector: Choose different color scales for the choropleth map.
Chat Interface: Ask questions about world GDP using the GPT-3 powered chat interface.
Python 3.x
Pandas
Plotly Express
Dash
OpenAI
Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or create a pull request.
This project is licensed under the MIT License.