# Installation Guide for Combine AI Modules
Welcome to the installation guide for the Combine_AI project. This document will walk you through the steps needed to set up and run the different modules of the project.
## Prerequisites
Before you begin, ensure you have the following installed on your system:
- Python 3.7 or higher
- Git
## Steps to Install and Run BrokerBot
### 1. Clone the Bitbucket Repository
Clone the repository from Bitbucket to your local machine using the following command:
```bash
git clone https://bitbucket.org/codegama/combine_ai.git
```
### 2. Setting Up the Environment
#### For General Modules
Navigate to the project directory and create a Python virtual environment:
```bash
cd <project_directory>
python3 -m venv venv_combineai
```
Activate the virtual environment:
- On macOS and Linux:
```bash
source venv_brokerbot/bin/activate
```
### 3. Install Dependencies
Install the required Python packages specified in the requirements.txt file:
```bash
pip3 install -r requirements.txt
```
### 4. Run the Application
For the following modules open a new Tmux Session for Each one of them and activate the python virtual environment venv_combineai.
Then navigate to each folder and run the provided command.
- **Healthcare Bot**: Run the Following Command
```bash
cd healthcare_bot
python3 app.py
```
- **Language Learning**: Run the Following Command
```bash
cd healthcare_bot
python3 main.py
```
- **Sentiment Learning**: Run the Following Command
```bash
cd sentiment_analysis
python3 main.py
```
- **Text to Image**: Run the Following Command
```bash
cd text_to_image
python3 main_v2.py
```
- **TTS STT**: Run the Following Command
```bash
cd tts_stt
python3 main.py
```
- **Video Effect**: Run the Following Command
```bash
cd video_effect
python3 mainv2.py
```
- **Writing Aid**: Run the Following Command
```bash
cd writing_aid
python3 app.py
```
## Run Background Image Removal and Image Upscaling
#### 1. Navigate to the bg_upscale Directory in a Separate Tmux Session
```bash
tmux new-session -s bg_upscale
cd <project_directory>/bg_upscale
```
#### 2. Create a New Virtual Environment
```bash
python3 -m venv venv_bg_upscale
```
#### 3. Activate Environment and Install requirements.txt
- On macOS/Linux:
```bash
source venv_bg_upscale/bin/activate
```
- Install the requirements:
```bash
pip install -r requirements.txt
```
#### 4. Start The Application:
```bash
python3 app.py
```
**Note: The ports specified for all APIs are 8006, 8009, 8010, 8005, 8007, 8011, 8002, 8013