Proooof/Gradio-Contract-Analysis-App
๐ 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.โฆ See the full description on the dataset page: https://huggingface.co/datasets/Proooof/Gradio-Contract-Analysis-App.
title: Gradio Contract Analysis App emoji: ๐ colorFrom: indigo colorTo: blue sdk: gradio sdkversion: "4.44.1" appfile: GradioContractAnalysis_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
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"
}