This is a Streamlit app that allows users to upload a CSV file containing a table and generates code to visualize the table using OpenAI's text completion API.
- Install the required dependencies by running command
pip install -r requirements.txt
. - Set up your OpenAI API key in the code by replacing
'YOUR_OPENAI_API_KEY'
with your actual API key. - Run the app using the command
streamlit run table_visualizer.py
. - Open the provided URL in your web browser.
- Upload a CSV file with a table to the app.
- The app will display the uploaded table and generate code to visualize the table using OpenAI.
- The generated code will be displayed, which you can use to visualize the table.