/hack-gpt-dev

development repo for the hack-gpt event

Primary LanguagePython

Hack GPT Dev Repo

App Structure

.
├── app
│   ├── api             // Middleware
│   ├── backend         // Python backend (Where we run models) 
│   ├── client          // React Frontend (Where we hanle modle I/O)
│   ├── manage.py       // Script to run server
│   ├── media           // Images 
│   └── static          // Static Files like .html and .css
├── env                 // Virtual Environment
├── README.md           // This file
└── requirements.txt    // Python dependencies

Installation

Clone repo git clone git@github.com:JustinMeimar/hack-gpt-dev.git

Navigate into repo cd hack-gpt-dev

Make a virtual environment python -m venv env

Install dependencies pip install -r requirements.txt

Install the frontend npm install

Build the frontend cd /app/client npm build

Run the server locally cd app && python manage.py runserver

OpenAI Authentication

Create the file app/api/llm/.env and add the OpenAI Credentials in the form

OPENAI_API_KEY = <"OPEN_AI_API_KEY">
OPENAI_ORG_ID = "<"OPENAI_ORG_ID">

Making Changes

The React frontend is served by the file app/client/build/index.html, so to make changes to the frontend run npm run build from app/client