docs: clarify backend virtual environment setup
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Dependencies
|
# Dependencies
|
||||||
node_modules/
|
node_modules/
|
||||||
.venv/
|
.venv/
|
||||||
|
backend/.venv/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
|
|||||||
+7
-6
@@ -7,10 +7,11 @@ The browser captures webcam frames, downsizes them, sends JPEG frames to this ba
|
|||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3 -m venv .venv
|
python3.11 -m venv backend/.venv
|
||||||
source .venv/bin/activate
|
source backend/.venv/bin/activate
|
||||||
pip install -r backend/requirements.txt
|
python -m pip install --upgrade pip
|
||||||
python3 backend/download_model.py
|
python -m pip install -r backend/requirements.txt
|
||||||
|
python backend/download_model.py
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
@@ -26,8 +27,8 @@ npm run dev
|
|||||||
Terminal 2:
|
Terminal 2:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source .venv/bin/activate
|
source backend/.venv/bin/activate
|
||||||
python3 -m backend.main
|
python -m backend.main
|
||||||
```
|
```
|
||||||
|
|
||||||
The WebSocket endpoint is:
|
The WebSocket endpoint is:
|
||||||
|
|||||||
Reference in New Issue
Block a user