Text Style Replication using GPT-3 based on Personality Identification
- Dataset used in the personality model can be found here.
- Code used to build the personality model is located in the
backendfolder with the nameNlp_Project.ipynb.
-
Clone the reprository
git clone https://github.com/arnxv0/ymir.git -
Setup frontend:
- Go to the frontend directory
cd frontend- Install all the dependencies using
npm
npm i- Start the frontend
npm start -
Setup backend:
- Go to the backend directory
cd backend- Create a
.envfile - Get an api key for the GPT-3 model from OpenAI here.
- Add the following line in the
.envfile, whereXXXis replaced with your api key
GPT3_TOKEN=XXX- Install the necessary libraries
pip install -r requirements.txt- Run the backend
python main.py