This is a Streamlit application that allows users to upload Excel or CSV files, analyze the data, and execute code to display results.
https://chat-data.streamlit.app
Analyze data | Plot data |
---|---|
- Upload multiple Excel or CSV files
- Analyze the data using the SmartDatalake library
- Execute code to display results
- Use OpenAI's GPT-3 language model for code generation
- Display the result and the corresponding code
- Python 3.9 or higher
- Streamlit
- pandas
- dotenv
- pandasai
- openai
-
Clone this repository:
git clone https://github.com/jeremy-feng/chat-data.git
-
Install the required packages:
pip install -r requirements.txt
- Set your OpenAI API key:
- You can set your API key in the text input field on the application.
- Alternatively, you can set your API key as an environment variable named
OPENAI_API_KEY
.
- Upload your Excel or CSV files:
- You can upload multiple files at once.
- The application will display the data in a dataframe.
- Ask a question:
- Enter your question in the text area.
- Click the "Start Execution" button to execute the code and display the result.
- View the result and the corresponding code:
- The result of the code execution will be displayed below the "Start Execution" button.
- The corresponding code will be displayed below the result.