File size: 987 Bytes
047d718
0a78fb1
7656316
0e39d80
 
047d718
 
0a78fb1
 
047d718
 
0a78fb1
0e39d80
0a78fb1
0e39d80
0a78fb1
7656316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: DocVerify AI - HR Document Verification
emoji: πŸ”
colorFrom: green
colorTo: blue
sdk: docker
pinned: false
license: mit
app_port: 7860
---

# DocVerify AI

AI-powered HR document verification using Gemini 3 Flash vision, EasyOCR, and forensic forgery detection.

**API runs on port 7860. Set these secrets in Space Settings:**
- `DATABASE_URL` β€” Supabase PostgreSQL connection string
- `GEMINI_API_KEY` β€” Primary Gemini key  
- `GEMINI_API_KEYS` β€” Comma-separated failover keys (key2,key3,key4,key5)
- `GEMINI_MODEL` β€” `gemini-3-flash`
- `CORS_ORIGINS` β€” Your Netlify URL (e.g. `https://docverify.netlify.app`)
- `EASYOCR_GPU` β€” `false`

## Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | `/health` | Health check |
| POST | `/upload` | Upload document |
| POST | `/analyze/{doc_id}` | Run AI analysis |
| GET | `/status/{doc_id}` | Get result |
| GET | `/documents` | List all |
| GET | `/documents/stats` | Dashboard stats |