JusticeAI is a Flask-based application that reads the Constitution of Pakistan and generates responses based on user input. It identifies keywords in the constitution and uses a generative AI model (Gemini) to provide answers in the context of the constitution.
- Flask
- PyPDF2
- google.generativeai
- NLTK
-
Clone the repository:
git clone https://github.com/your-username/lawbot.git
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
- Access the application in your web browser at http://localhost:5000.
- Enter your question in the provided input field and submit.
- The application will generate a response based on the input question and the Constitution of Pakistan.
Contributions to JusticeAI are welcome! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request to the main repository.