Skip to content

Ashar086/ContractIQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContractIQ

Hack The Feature Hackathon

ContractIQ is an AI-powered platform designed to revolutionize the way businesses review contracts. Built with cutting-edge natural language processing (NLP) technology, ContractIQ automates the tedious and error-prone process of contract analysis, enabling users to focus on strategic decision-making.

Features

  • Clause Extraction: Automatically identifies and extracts critical clauses from contracts.
  • Risk Assessment: Evaluates clauses for high, medium, and low risks.
  • Anomaly Detection: Flags unusual or non-standard clauses.
  • Compliance Checking: Ensures contracts comply with relevant regulations (e.g., GDPR).
  • User-Friendly Interface: Designed for both legal professionals and non-experts.

How It Works

  1. Upload Contracts: Users upload contracts in PDF, DOC, or TXT format.
  2. AI Analysis: ContractIQ's AI analyzes the contract, identifying key clauses, risks, and compliance issues.
  3. Generate Report: Users receive a detailed report with actionable insights.

Getting Started

Prerequisites

  • Python 3.8 or higher
  • Streamlit
  • OpenAI API key (or equivalent AI/ML API key)

Installation

  1. Clone the repository:

    git clone https://github.com/Ashar086/ContractIQ.git
    cd ContractIQ
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Set up your API key: Create a .env file in the root directory:

    AI_ML_API_KEY="your-api-key-here"
    

    Alternatively, you can enter your API key directly in the app when prompted.

Running the App

Start the Streamlit app:

streamlit run app.py

Open your browser and navigate to the provided local URL (usually http://localhost:8501).

File Structure

contractiq/
├── app.py                  # Main Streamlit app
├── utils/                  # Utility functions
│   ├── __init__.py         # Initialize the utils package
│   ├── api_utils.py        # API-related functions
│   ├── file_utils.py       # File handling functions
│   └── display_utils.py    # Display and UI-related functions
├── requirements.txt        # Dependencies
└── .env                    # Environment variables (optional)

Usage

  1. Enter API Key: When you first open the app, you will be prompted to enter your AI/ML API key.
  2. Upload Contract: Upload a contract file (PDF, DOC, or TXT) for analysis.
  3. View Results: The app will analyze the contract and display the results, including risk levels, compliance status, and key clauses.

Contributing

We welcome contributions! If you'd like to contribute to ContractIQ, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix:
    git checkout -b feature/your-feature-name
  3. Commit your changes:
    git commit -m "Add your commit message here"
  4. Push your changes to the branch:
    git push origin feature/your-feature-name
  5. Open a pull request and describe your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • Built by [Muhammad Ashar Ishfaq].
  • Special thanks to Hack The Feature Hackathon for the opportunity.

Contact

For questions or feedback, please reach out:

About

Hack The Feature Hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages