Setup React
DO NOT SPAM THE BUTTON ON THE PAGE AS IT CALLS THE GPT APIS, WHICH COSTS US MONEY.
I setup react and added a simple interface in the frontend to get Lucas started.
Do the following to get it running:
-
install
nvm
if u dont have it already. -
open 2 terminals and cd them both into the
analyzer
folder. -
execute
nvm use
in both terminals. -
In one of the terminals, execute
npm i
to install frontend packages. Once that's done, executenpm start
in the same terminal. Frontend has started running. -
In your other terminal, further cd into the
server
folder. Then, executepython3 app.py
. Backend is also running now. -
Open
localhost:3000
in the browser.
Once the above is done, try out the interface I have setup, which is the image below:
Click on the button to get the following:
Each box represents a different API getting called. Look into App.js
for how im calling them and what input Im giving them. The three APIs return HTML.
Instead, you must make them return JSON and only return the response coming from GPT-3.5. Remove templates from the response.