MERCY is an AI-powered legal defense system inspired by the movie "Mercy". It's a web-based application where lawyers can defend defendants in hypothetical legal scenarios using advanced AI (OpenAI API) to provide intelligent legal insights and real-time analysis.
- User Authentication: Lawyer registration and login system
- AI Judge Integration: OpenAI API integration for intelligent legal analysis
- Real-time Data Streaming: Stream responses from AI for live feedback
- Case Processing: Input and process hypothetical legal scenarios
- Data Analysis: Analyze case details and generate defense strategies
- Backend: Flask (Python)
- AI Integration: OpenAI API
- Authentication: Flask-Login
- Database: SQLite (can be upgraded to PostgreSQL)
- Frontend: HTML/CSS/JavaScript
- Python 3.8+
- pip (Python package manager)
- OpenAI API Key
-
Clone the repository:
git clone https://github. 5DFC com/Kanpadbe/MERCY.git cd MERCY -
Create a virtual environment:
python -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env
-
Run the application:
python app.py
MERCY/
├── app.py
├── auth.py
├── ai_judge.py
├── requirements.txt
├── .env.example
└── README.md
- Register as a Lawyer
- Login to your account
- Submit a legal scenario
- Get AI analysis and defense strategies
MIT License