anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
A chat assistant that helps people in India with everyday legal problems such as unpaid salary, deposits and consumer refunds. It builds your case, answers from a legal knowledge base and drafts notices. Not legal advice.
AI Lawyer - Everyday Legal Help (India) is a kit in the Legal category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download rolmaxx/AI-Lawyer --repo-type space --local-dir AI-Lawyer cd AI-Lawyer
This Space is a conversational assistant for everyday legal problems in India. It turns a messy story into structured facts, answers from a knowledge base of Indian laws, and drafts a legal notice or consumer complaint. It was built as a hiring assignment and is clear that it is not a lawyer.
It suits ordinary people facing unpaid pay, a withheld deposit or a faulty product, and developers who want to study a small retrieval-based legal assistant. It also suits students who want to practice a dispute.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Employment | Employees | Understand an unpaid salary or final settlement claim | Describe a missed settlement and get a structured summary |
| Housing | Tenants | Prepare for a security deposit dispute | Ask what a deposit claim needs |
| Consumer rights | Shoppers | Seek a refund for a defective product | Get a draft consumer complaint |
| Education | Law students | Practice arguing a case in role-play mode | Argue against the other side's likely points |
You can skip it if your matter is criminal, in court or high in value, since the tool says those need a real advocate.
| Use case | Who | What they get back |
|---|---|---|
| Build a case | Anyone with a dispute | Facts sorted into a structured case |
| Get a grounded answer | Employees and shoppers | An answer based on the retrieved legal text |
| Draft a document | Consumers and tenants | A draft legal notice or consumer complaint |
| Practice the argument | Students | A role-play of the other side |
The online page needs nothing. A local copy needs Python, packages and an API key.
pip install -U huggingface_hub hf download rolmaxx/AI-Lawyer --repo-type space --local-dir AI-Lawyer cd AI-Lawyer pip install gradio==4.44.1 pip install -r requirements.txt python app.py
The README's own local run sets the key first.
export GEMINI_API_KEY="your-key-here" pip install -r requirements.txt python app.py
To switch provider, change one line in config.py and set the matching key.
MODEL_PROVIDER = "gemini" # or "openai" | "groq"
Open the chat and describe your problem in plain words. The assistant organizes the facts, asks for what is missing and answers from its knowledge base. You can ask it to draft a legal notice or consumer complaint, or switch to role-play to practice arguing with the other side.
| Tool | What it does |
|---|---|
| Case building | Turns a messy story into structured facts |
| Grounded answers | Answers from a retrieval knowledge base of Indian laws |
| Document drafts | Writes a legal notice or consumer complaint draft |
| Role-play mode | Lets you practice arguing with the other side |
You write that your employer has not paid your final settlement after you resigned. The assistant sorts out the dates and amounts, answers from the labour-law material it holds and offers a draft legal notice. For high-risk cases, it points you to a real lawyer or free legal aid.
If you are new to this, treat it as a way to get your facts in order before you talk to anyone. Read the draft carefully and check it with a qualified person.
If you know the field, the app uses retrieval over a local index with strict prompts against invented law. If the retrieved text lacks an answer, it says so instead of making up sections or cases. The Space names Llama 3.3 70B, Llama 3 8B and a Qwen3 embedding model, and the code lets you swap providers in one line.
Coverage differs by area, so check where your problem sits.
| Area | Coverage |
|---|---|
| Salary and wages | Strong, with the wage and industrial relations codes |
| Consumer disputes | Strong, with the 2019 consumer protection act |
| Limitation periods | Useful for working out deadlines |
| Rent | Weak, mostly references with a note that rent law is a state matter |
A chat assistant that helps people in India with everyday legal problems such as unpaid salary, deposits and consumer refunds. It builds your case, answers from a legal knowledge base and drafts notices. Not legal advice.
Made by rolmaxx on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.
What it is: This Space is a conversational assistant for everyday legal problems in India. It turns a messy story into structured facts, answers from a knowledge base of Indian laws, and drafts a legal notice or consumer complaint. It was built as a hiring assignment and is clear that it is not a lawyer.
Who it suits: It suits ordinary people facing unpaid pay, a withheld deposit or a faulty product, and developers who want to study a small retrieval-based legal assistant. It also suits students who want to practice a dispute.
Industry | Who uses it | How they use it | Example
Employment | Employees | Understand an unpaid salary or final settlement claim | Describe a missed settlement and get a structured summary
Housing | Tenants | Prepare for a security deposit dispute | Ask what a deposit claim needs
Consumer rights | Shoppers | Seek a refund for a defective product | Get a draft consumer complaint
Education | Law students | Practice arguing a case in role-play mode | Argue against the other side's likely points
You can skip it if your matter is criminal, in court or high in value, since the tool says those need a real advocate.
Where to use it:
Use case | Who | What they get back
Build a case | Anyone with a dispute | Facts sorted into a structured case
Get a grounded answer | Employees and shoppers | An answer based on the retrieved legal text
Draft a document | Consumers and tenants | A draft legal notice or consumer complaint
Practice the argument | Students | A role-play of the other side
How to set it up: The online page needs nothing. A local copy needs Python, packages and an API key.
pip install -U huggingface_hub
hf download rolmaxx/AI-Lawyer --repo-type space --local-dir AI-Lawyer
cd AI-Lawyer
pip install gradio==4.44.1
pip install -r requirements.txt
python app.py
The README's own local run sets the key first.
export GEMINI_API_KEY="your-key-here"
pip install -r requirements.txt
python app.py
To switch provider, change one line in config.py and set the matching key.
MODEL_PROVIDER = "gemini" # or "openai" | "groq"
How to use it: Open the chat and describe your problem in plain words. The assistant organizes the facts, asks for what is missing and answers from its knowledge base. You can ask it to draft a legal notice or consumer complaint, or switch to role-play to practice arguing with the other side.
Tool | What it does
Case building | Turns a messy story into structured facts
Grounded answers | Answers from a retrieval knowledge base of Indian laws
Document drafts | Writes a legal notice or consumer complaint draft
Role-play mode | Lets you practice arguing with the other side
Example: You write that your employer has not paid your final settlement after you resigned. The assistant sorts out the dates and amounts, answers from the labour-law material it holds and offers a draft legal notice. For high-risk cases, it points you to a real lawyer or free legal aid.
For newcomers and experts: If you are new to this, treat it as a way to get your facts in order before you talk to anyone. Read the draft carefully and check it with a qualified person.
If you know the field, the app uses retrieval over a local index with strict prompts against invented law. If the retrieved text lacks an answer, it says so instead of making up sections or cases. The Space names Llama 3.3 70B, Llama 3 8B and a Qwen3 embedding model, and the code lets you swap providers in one line.
You describe your problem
A case object holds the structured facts
The knowledge base is searched
The model answers from what was found
You can draft a notice or role-play
Good to know: Coverage differs by area, so check where your problem sits.
Title: Knowledge base coverage
Area | Coverage
Salary and wages | Strong, with the wage and industrial relations codes
Consumer disputes | Strong, with the 2019 consumer protection act
Limitation periods | Useful for working out deadlines
Rent | Weak, mostly references with a note that rent law is a state matter
Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face Spaces in the same category that share the most tags with this one.
| Product | Likes | Built with | License | Last change |
|---|---|---|---|---|
| AI Lawyer - Everyday Legal Help (India) This page | 2 | gradio | mit | |
| Face RedactionShares gradio | 1 | gradio | mit | |
| LurisQAShares gradio | 1 | gradio | mit |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
rizzoaiacademy · Kit
A small CPU-friendly model that finds 22 kinds of personal data in Italian legal text, including codice fiscale and partita IVA, for reversible anonymization.…
perplexity-ai · Kit
Finds personal data in chat conversations and masks it, using a 600M-parameter encoder with a token tagger and a sensitivity score. It suits teams that clean c…
OpenMed · Kit
Finds and masks personal data in text, across 55 fine-grained categories such as names, contact details and IDs. It suits teams that redact text before sharing…