pinggg-legal-full

A specialized legal analysis model trained on Indian Law and the Indian Penal Code (IPC).

Model Details

  • Base Model: Llama 3
  • Specialization: Indian Legal Analysis
  • Context Length: 8192

How to Use with Inference API

import requests

API_URL = "/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fhel1929%2Fpinggg-legal-full"
headers = {"Authorization": "Bearer YOUR_HUGGING_FACE_API_TOKEN"}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()
    
output = query({
    "inputs": "Person A tried to kill Person B and Person B killed Person A in self defense. Is Person B guilty?",
    "parameters": {"max_new_tokens": 500}
})

Model Limitations

This model should be used for educational purposes only and not for actual legal advice.

Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support