Skip to content

Latest commit

 

History

History
61 lines (55 loc) · 1.18 KB

README.md

File metadata and controls

61 lines (55 loc) · 1.18 KB

Shakespeare sample application for DataStax Python driver

1. Let the environment finish running the pip install command. See terminal below
2. Get an Astra account/database at https://astra.datastax.com
3. Get your DB ID and Token
4. Sign up at openai.com and get an API key http://openai.com
5. Populate an .env file in the Chapter3 directory with the items from the previous steps.
OPENAI_API_KEY=
ASTRA_DB_APPLICATION_TOKEN=
ASTRA_DB_ID=
6. Change directories to Chapter3, then run the population command with `python populate.py` to get the answer
cd Chapter3
python populate.py
7. Change directories to Chapter4, then run the split command with `python split.py` to separate the training and testing data.
cd ../Chapter4
python split.py