Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,61 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BAT_Master Live Project Deployment (Main Branch)
|
| 2 |
+
|
| 3 |
+
This guide provides step-by-step instructions to deploy the `BAT_Master` project from the `dev` branch.
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
## ๐ Branch Structure
|
| 8 |
+
|
| 9 |
+
- **MAIN Branch**: Stable base code
|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
## ๐ง System Setup & Prerequisites
|
| 14 |
+
|
| 15 |
+
Run the following commands to update the system and install required packages:
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
sudo apt update && sudo apt upgrade -y
|
| 19 |
+
sudo apt-get install -y iproute2 libgl1 nano wget unzip nvtop git git-lfs
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## ๐ฅ Clone the Repository
|
| 25 |
+
|
| 26 |
+
```bash
|
| 27 |
+
git clone https://huggingface.co/aiyubali/BAT
|
| 28 |
+
cd BAT
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## ๐ Initial Deployment
|
| 34 |
+
|
| 35 |
+
```bash
|
| 36 |
+
chmod +x deploy.sh
|
| 37 |
+
./deploy.sh
|
| 38 |
+
sleep 10
|
| 39 |
+
python test.py
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
## ๐ Re-deployment (if needed)
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
chmod +x reDeploy.sh
|
| 48 |
+
./reDeploy.sh
|
| 49 |
+
sleep 10
|
| 50 |
+
python test.py
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
+
|
| 55 |
+
## ๐ Start the API Server
|
| 56 |
+
|
| 57 |
+
```bash
|
| 58 |
+
cd BAT_Master
|
| 59 |
+
python BAT_API.py
|
| 60 |
+
hypercorn BAT_API:app --bind 127.0.0.1:8679 --workers 2
|
| 61 |
+
```
|