a | b/init.sh | ||
---|---|---|---|
1 | #! /bin/bash |
||
2 | |||
3 | # Running as root |
||
4 | sudo -s |
||
5 | |||
6 | apt update |
||
7 | apt install -y python3 pip nodejs npm |
||
8 | git clone https://github.com/AbhiSinha08/stress-detection.git |
||
9 | cd stress-detection |
||
10 | pip install -r requirements.txt |
||
11 | pip install jupyter numpy pandas scikit-learn flask flask_cors |
||
12 | |||
13 | cd client |
||
14 | npm install --save-dev |
||
15 | cd .. |
||
16 | |||
17 | chmod +x train.sh |
||
18 | chmod +x server.sh |
||
19 | |||
20 | ./train.sh |
||
21 | |||
22 | sudo ./server.sh |