This project aims to compare two business contract PDF files and highlight the differences between them using a Streamlit interface. The differences are highlighted in the output PDF file.
- Upload two PDF files.
- Highlight differences between the two PDF files.
- Download the highlighted differences PDF.
-
Clone the repository:
git clone https://github.com/yourusername/BusinessContractValidation.git cd BusinessContractValidation
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the dependencies:
pip install -r requirements.txt
Modify the absolute path in app.py (line 5) to reflect the path of scripts in your environment.
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and go to
http://localhost:8501
. -
Upload the two PDF files you want to compare.
-
Click the "Generate Differences PDF" button.
-
Download the highlighted differences PDF.
The docker image is available at 'https://hub.docker.com/repository/docker/gaurisankar/bcv/general'
-
Build the container
docker build -t business-contract-validation .
-
Run the container
docker run -p 8501:8501 business-contract-validation