devashreepatel / streamlit-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamlit App for Table Visualization Code Generation

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.

Usage

  1. Install the required dependencies by running command pip install -r requirements.txt.
  2. Set up your OpenAI API key in the code by replacing 'YOUR_OPENAI_API_KEY' with your actual API key.
  3. Run the app using the command streamlit run table_visualizer.py.
  4. Open the provided URL in your web browser.
  5. Upload a CSV file with a table to the app.
  6. The app will display the uploaded table and generate code to visualize the table using OpenAI.
  7. The generated code will be displayed, which you can use to visualize the table.

About


Languages

Language:Python 100.0%