Skip to content

mivanicova/codeinterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The file assistantai-codeinterpreter.py contains sample code to invoke the Assistant API for data analysis purposes.

The file codeinterpreter-api.py contains sample code to invoke the Codeinterpreter API for data analysis purposes.

  1. pip install -r requirements.txt
  2. export OPENAI_API_KEY={your key obtained from https://openai.com}
  3. authenticate with your GCP account to access BigQuery sample (public Austin crime incidents dataset): gcloud auth application-default login
  4. replace my-gcp-project, with your GCP project

You can skip the BigQuery part, by commenting out the code which connects to GCP. Alternatively you can prepare your data in the file "df.csv".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages