Skip to content

Sathvik257/Justice-GPT

Repository files navigation

βš–οΈ Justice GPT

Justice-GPT is an AI-powered legal assistant that helps users identify relevant Indian Penal Code (IPC) sections based on textual crime descriptions. It leverages large language models like Google Gemini to provide legal reasoning, explanations, and references in plain language.

πŸš€ Features

  • πŸ” Analyze criminal scenarios and return applicable IPC sections.
  • πŸ€– Uses Google Gemini AI for natural language understanding.
  • πŸ“š Provides reasoning behind the applied legal sections.
  • 🌐 Web-based frontend built using Vite + React.
  • 🧠 Custom prompt tuning for legal accuracy and relevance.

πŸ“ Project Structure

justice-gpt/ β”œβ”€β”€ public/ # Static files (favicons, manifest, etc.) β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ assets/ # Icons, images, or static visual content β”‚ β”œβ”€β”€ components/ # React components (Navbar, Footer, etc.) β”‚ β”œβ”€β”€ pages/ # Main pages (Home, Chat, About) β”‚ β”œβ”€β”€ api/ # API integration (Gemini calls) β”‚ β”œβ”€β”€ App.jsx # App entry point β”‚ β”œβ”€β”€ main.jsx # Vite main render β”‚ └── index.css # Global styles β”œβ”€β”€ .env # Environment variables (API keys) β”œβ”€β”€ .gitignore # Files and folders to ignore in Git β”œβ”€β”€ package.json # Project metadata and dependencies β”œβ”€β”€ vite.config.js # Vite configuration └── README.md # Project overview and setup guide


πŸ› οΈ Installation & Setup

# 1. Clone the repository
git clone https://github.com/Sathvik257/Justice-GPT.git
cd Justice-GPT

# 2. Install dependencies
npm install

# 3. Create a .env file in the root directory
touch .env

# 4. Add your Gemini API key
echo "GEMINI_API_KEY=your_api_key_here" > .env

# 5. Start the development server
npm run dev

πŸ“¦ Tech Stack
.βš›οΈ React + Vite
.🎨 Tailwind CSS
.🧠 Google Gemini API
.πŸ› οΈ Node.js (optional backend)

πŸ“Œ Future Scope
.πŸ“œ IPC database integration
.πŸ—£οΈ Voice input support
.πŸ” Secure legal advisory layer

About

βš–οΈ Justice GPT – An AI-powered legal advisor that analyzes πŸ“ crime descriptions and suggests relevant πŸ“œ IPC sections. πŸ€– Provides instant legal insights using natural language input and intelligent reasoning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages