8000 GitHub - Kanpadbe/MERCY · GitHub
[go: up one dir, main page]

Skip to content
KanpadbePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

MERCY - AI-Powered Legal Defense System

Overview

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.

Features

  • 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

Tech Stack

  • Backend: Flask (Python)
  • AI Integration: OpenAI API
  • Authentication: Flask-Login
  • Database: SQLite (can be upgraded to PostgreSQL)
  • Frontend: HTML/CSS/JavaScript

Installation

Prerequisites

  • Python 3.8+
  • pip (Python package manager)
  • OpenAI API Key

Setup Instructions

  1. Clone the repository:

    git clone https://github.
    5DFC
    com/Kanpadbe/MERCY.git
    cd MERCY
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up environment variables:

    cp .env.example .env
  5. Run the application:

    python app.py

Project Structure

MERCY/
├── app.py
├── auth.py
├── ai_judge.py
├── requirements.txt
├── .env.example
└── README.md

Usage

  1. Register as a Lawyer
  2. Login to your account
  3. Submit a legal scenario
  4. Get AI analysis and defense strategies

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0