| # 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 |
| ``` |