synclm-demo / README.md
SCBconsulting's picture
Update README.md
72d8f3c verified

A newer version of the Gradio SDK is available: 6.4.0

Upgrade
metadata
license: apache-2.0
title: 'SYNCLM: AI Contract Intelligence Demo'
sdk: gradio
emoji: πŸ“š
colorFrom: purple
colorTo: indigo
thumbnail: >-
  https://cdn-uploads.huggingface.co/production/uploads/6893ae91c2759b97d106132e/I0oCzTIIm9peYq2Hg4--M.png
short_description: 'AI-powered contract analysis: summary, metadata, clause risk'
pinned: true

SYNCLM Logo


license: mit title: 'SYNCLM: AI Contract Intelligence Demo' sdk: gradio emoji: πŸ“š colorFrom: purple colorTo: indigo thumbnail: >- https://cdn-uploads.huggingface.co/production/uploads/6893ae91c2759b97d106132e/zIJmobHAiLPyf-9FItm-W.png short_description: 'AI-powered contract analysis: summary, metadata, clause risk'

πŸ€– SYNCLM – AI Contract Intelligence Demo


license: mit title: 'SYNCLM: AI Contract Intelligence Demo' sdk: gradio emoji: πŸ“š colorFrom: purple colorTo: indigo thumbnail: >- https://cdn-uploads.huggingface.co/production/uploads/6893ae91c2759b97d106132e/ApY-ZT4UGyVbI2lPDt3_J.png short_description: 'AI-powered contract analysis: summary, metadata, clause risk'

SYNCLM – AI Contract Intelligence Demo πŸ€–πŸ“„

πŸ€– SYNCLM – AI Contract Intelligence Demo

An interactive legal tech prototype that showcases intelligent contract review using open-source models from Hugging Face.

πŸ” Features

  • Upload legal documents (.pdf, .docx, .txt)
  • Executive summarization (EN)
  • Metadata extraction using NER (Named Entity Recognition)
  • Clause risk detection (rule-based)
  • Fallback clause suggestions (semantic similarity)
  • Real-time translation (EN β†’ PT via Unicamp-dl)

🧠 Models Used

Task Model Used
Summarization facebook/bart-large-cnn
Metadata (NER) pierreguillou/ner-legal-ptbr-electra-small
Risk Detection Custom classifier (fine-tuned LegalBERT)
Translation unicamp-dl/translation-en-pt-t5

All models sourced from Hugging Face

πŸš€ Run Locally

Install dependencies:

pip install -r requirements.txt

---

### βš™οΈ Built With  
`Gradio` β€’ `Transformers` β€’ `Sentence Transformers` β€’ `nltk` β€’ `spaCy` β€’ `pdfplumber` β€’ `python-docx` β€’ `sentencepiece` β€’ `torch` β€’ `dateparser`

---

### πŸ‘©β€πŸ’» Creator  
**Sabrina Colirri** | [SCB Consulting](https://huggingface.co/SCBconsulting)