Skip to content

mhconradt/chart-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Install Poetry

  2. Set up a new virtual environment and install the requirements:

python3 -m venv venv
source venv/bin/activate
  1. Install the requirements:
poetry install
  1. Create a Snowflake trial account. Free for 30 days and when you're done you create a new one.

  2. Create an OpenAI account and get an API key. This app costs very little even with heavy usage (my highest bill was $20 for a whole month).

  3. Set the necessary environment variables:

OPENAI_API_KEY=sk-***
SF_ACCOUNT=XYZ12345
SF_DATABASE=SNOWFLAKE_SAMPLE_DATA
SF_PASSWORD=$ecret
SF_ROLE=ACCOUNTADMIN
SF_SCHEMA=TPCH_SF1
  1. Run the app:
streamlit run ChartGPT.py

About

A chat interface for automatically creating charts from live data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages