- Clone this repo
- install conda
- Run the following command
cd dataGen
conda create -n 'dataGen' python=3.8
pip3 install -r requirements.txt
- Create a .env file with the following
OPENAI_API_KEY=replace_your_api_key
- python3 run.py
--task general # [general, code]
--num-example 100 #number of examples to generate, must be multiply of 10
After running, the data will be stored in generated_data.txt
. If the file is already existed, the data will be concatenated