Spaces:
Sleeping
A newer version of the Gradio SDK is available: 6.19.0
title: GharScan
emoji: ποΈ
colorFrom: gray
colorTo: red
sdk: gradio
sdk_version: 6.14.0
app_file: app.py
pinned: true
license: mit
short_description: AI Building Defect Inspector for India
tags:
- computer-vision
- building-inspection
- defect-detection
- india
- minicpm-v
- openbmb
- gradio
- backyard-ai
- build-small-hackathon
- track:backyard
- sponsor:modal
- achievement:offgrid
- achievement:welltuned
- achievement:offbrand
- achievement:llama
- achievement:sharing
- achievement:fieldnotes
models:
- ritvik360/gharscan-qwen2vl-lora
- ritvik360/gharscan-qwen2vl-gguf
datasets:
- ritvik360/gharscan-defect-dataset
- ritvik360/gharscan-agent-traces
ποΈ GharScan β AI Building Defect Inspector for India
Track: Backyard AI Β· Build Small Hackathon 2026
"My neighbor Aunty Puja, a retired teacher in a 1982 DDA flat in Delhi, had three masons give her three different quotes for a crack she didn't understand. GharScan told her in 12 seconds: settlement crack, Severity 2/5, not structural, seal before monsoon β βΉ400β600, local mason."
What It Does
Point your phone camera at any defect in your home β a crack, a damp patch, rust stains, salt deposits β and get an instant expert-grade triage report:
- Defect type from an 8-class Indian residential taxonomy
- Severity score (1β5, color-coded) with structural risk flag
- Immediate action in plain language (English or Hindi)
- Cost estimate in INR from a 2026 Delhi/NCR market rate matrix
- Who to call: painter / mason / waterproofing contractor / civil engineer
- Monsoon risk flag (critical for Indian users pre-June)
The Problem
Over 62% of India's urban housing was built before 1990. When a homeowner sees a wall crack, they have three options: pay βΉ2,000β8,000 for a civil engineer, ask a mason who has a conflict of interest, or Google it and get scared. GharScan is the affordable first answer.
Technical Architecture
| Layer | Technology |
|---|---|
| Base model | Qwen2-VL-2B-Instruct (2.07B params) |
| Fine-tuning | LoRA r=16, 7 modules, Modal A100-80GB, 3 epochs |
| Dataset | 8,860 deduplicated images β 17,720 VQA records |
| Deduplication | CLIP ViT-B/32, cosine sim >0.95 threshold |
| Inference | HuggingFace ZeroGPU Β· gr.Blocks Β· no external API calls |
| Cost estimation | Deterministic INR lookup table (not model-generated) |
| Offline runtime | llama.cpp GGUF Q4_K_M Β· 941MB |
| Agent tracing | Auto-uploaded to ritvik360/gharscan-agent-traces |
How to Use on Mobile
- Open this Space on your phone browser
- Tap Take Photo β your rear camera opens directly
- Photograph the defect (crack, stain, damage)
- Wait ~12 seconds for analysis
- Read your inspection report
REQ Compliance Checklist
| Requirement | Status | Evidence |
|---|---|---|
| REQ-01: β€32B parameters | β | Qwen2-VL-2B = 2.07B params |
| REQ-02: Gradio Space in org | β | GharScan Space |
| REQ-03: Demo video | β | Demo Walkthrough |
| REQ-04: Social media post | β | Social Post |
| REQ-05: ZeroGPU limit | β | 1 ZeroGPU Space used |
| REQ-06: README tags | β | YAML above includes all tracks + badges |
Bonus Quest Badges Claimed
| Badge | Status | Proof |
|---|---|---|
| π Off the Grid β no cloud APIs | β | ZeroGPU only, inference.py has zero external API calls |
| π― Well-Tuned β published fine-tune | β | ritvik360/gharscan-qwen2vl-lora |
| π¨ Off-Brand β custom UI beyond defaults | β | Dark concrete-grey theme, custom CSS, HTML report cards |
| π¦ Llama Champion β GGUF + llama.cpp | β | ritvik360/gharscan-qwen2vl-gguf Β· Q4_K_M 941MB |
| π‘ Sharing is Caring β agent traces | β | ritvik360/gharscan-agent-traces |
| π Field Notes β blog post | β | Read on HuggingFace Blog |
All 6 badges claimed β Bonus Quest Champion eligible
Repositories
| Resource | Link |
|---|---|
| π€ Fine-tuned LoRA | ritvik360/gharscan-qwen2vl-lora |
| π¦ GGUF (Q4_K_M, 941MB) | ritvik360/gharscan-qwen2vl-gguf |
| π Training dataset | ritvik360/gharscan-defect-dataset |
| π Agent traces | ritvik360/gharscan-agent-traces |
| π Blog post | huggingface.co/blog/ritvik360/gharscan |
Citation
If you use the GharScan dataset or model:
@misc{gharscan2026,
title = {GharScan: AI Building Defect Inspector for Indian Residential Properties},
author = {ritvik360},
year = {2026},
url = {https://huggingface.co/spaces/build-small-hackathon/gharscan}
}