docs: clarify backend virtual environment setup

This commit is contained in:
Tom Boullay
2026-04-27 17:11:08 +02:00
parent eeca87dd0e
commit 31c3e43698
2 changed files with 8 additions and 6 deletions
+1
View File
@@ -1,6 +1,7 @@
# Dependencies # Dependencies
node_modules/ node_modules/
.venv/ .venv/
backend/.venv/
__pycache__/ __pycache__/
*.pyc *.pyc
+7 -6
View File
@@ -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: