File size: 1,052 Bytes
5c87373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
license: mit
---
---
title: Gradio Contract Analysis App
emoji: ๐Ÿ 
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: "4.44.1"
app_file: Gradio_Contract_Analysis_App.ipynb
pinned: true
license: apache-2.0
---

# ๐Ÿ  Contract Analysis with Gradio

This tutorial shows how to build a **contract metadata extraction demo** using **Gradio**.  
It uses simple heuristics and `dateparser` to detect **parties** and **start dates** from lease text.  

๐Ÿ““ Notebook included:  
- `Gradio_Contract_Analysis_App.ipynb`

---

## ๐Ÿš€ What Youโ€™ll Learn
- Write regex & date heuristics to extract contract metadata.  
- Build a Gradio app with textbox input and JSON output.  
- Deploy to Hugging Face Spaces for a live demo.  

---

## ๐Ÿ”ง Requirements
```bash
pip install gradio dateparser
๐Ÿ“Š Example
Input:

pgsql
Copy code
This Lease Agreement is made between Landlord X and Tenant Y for the premises at 123 Main St. Commencing on June 1, 2025.
Output:

json
Copy code
{
  "parties": ["Landlord X", "Tenant Y"],
  "start_date": "2025-06-01"
}