File size: 922 Bytes
206d18b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# BAT_Master Live Project Deployment (Main Branch)

This guide provides step-by-step instructions to deploy the `BAT_Master` project from the `dev` branch.

---

## πŸ“‚ Branch Structure

- **MAIN Branch**: Stable base code

---

## πŸ”§ System Setup & Prerequisites

Run the following commands to update the system and install required packages:

```bash
sudo apt update && sudo apt upgrade -y
sudo apt-get install -y iproute2 libgl1 nano wget unzip nvtop git git-lfs
```

---

## πŸ“₯ Clone the Repository

```bash
git clone https://huggingface.co/aiyubali/BAT
cd BAT
```

---

## πŸš€ Initial Deployment

```bash
chmod +x deploy.sh
./deploy.sh
sleep 10
python test.py
```

---

## πŸ”„ Re-deployment (if needed)

```bash
chmod +x reDeploy.sh
./reDeploy.sh
sleep 10
python test.py
```

---

## 🌐 Start the API Server

```bash
cd BAT_Master
python BAT_API.py
hypercorn BAT_API:app --bind 127.0.0.1:8679 --workers 2
```