Skip to content

Latest commit

 

History

History
39 lines (39 loc) · 796 Bytes

README.md

File metadata and controls

39 lines (39 loc) · 796 Bytes

Install

Clone the project

git clone https://github.com/mrn3088/tutor.git

Create virtual environment

python3 -m venv venv
source venv/bin/activate # on linux/macos
venv\Scripts\activate # on windows

Install requirements

mkdir db
mkdir document
pip install -r requirements.txt

Install and start mongodb

MacOS

brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community

Linux

sudo apt-get install -y mongodb-org
sudo systemctl start mongod

Windows

Please follow the instructions here.

Set OPENAI_API_KEY

echo "OPENAI_API_KEY=YOUR_API_KEY" > .env

Run

streamlit run app.py