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
backend
folder 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
.env
file - Get an api key for the GPT-3 model from OpenAI here.
- Add the following line in the
.env
file, whereXXX
is replaced with your api key
GPT3_TOKEN=XXX
- Install the necessary libraries
pip install -r requirements.txt
- Run the backend
python main.py