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.
View our Project:https://justice-gpt-one.vercel.app/
- π 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.
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
# 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