How divyashreekm05/infocars works
DealSense is a car lease/loan contract assistant whose main workflow accepts a contract or vehicle VIN, extracts document text or vehicle details, estimates fair market value, and provides negotiation guidance. Its documented capabilities also include document cleanup, market insights, chat history, and login. The repository contains several overlapping API/server implementations; the graph shows their evidenced responsibilities without treating them as one proven runtime chain. Some frontend and API wiring is unsampled, so those connections are omitted or marked unverified.
Main entry points: vin_decoder.py VIN Decoder · valuation.py Price Valuation · api1.py FastAPI Variant · api.py Unified API
Components 20
User Experience
- Web Interface
frontend/app.js
API Entry Points
- Unified Flask Server
server1.py - Flask Server
server.py - Unified API
backend/app/api.py - FastAPI Variant
backend/app/api1.py - FastAPI Variant
backend/app/api3.py - Login Auth
auth.py
Vehicle Intelligence
- VIN Decoder
backend/app/vin_decoder.py - Price Valuation
backend/app/valuation.py - Negotiation Engine
backend/app/negotiation.py
Document Processing
- Hybrid OCR
backend/app/ocr.py - Image Cleanup
backend/app/preprocessing.py - Contract Analysis
backend/app/negotiation.py - OCR Results
backend/app/database.py
Other components
- Buyer
- NHTSA
- MarketCheck
- Groq AI
- Gemini AI
- Contract File
Connections 25
- Buyer → Web Interface: uses
README.md - Buyer → Contract File: uploads
README.md - Web Interface → Flask Server: requests
README.md - Flask Server → Web Interface: serves
server.py - Flask Server → Unified API: delegates
server.py - Unified Flask Server → VIN Decoder: decodes VIN
server1.py - Unified Flask Server → Price Valuation: estimates price
server1.py - Unified Flask Server → Negotiation Engine: requests advice
server1.py - Unified API → VIN Decoder: decodes VIN
backend/app/api.py - Unified API → Price Valuation: estimates price
backend/app/api.py - Unified API → Negotiation Engine: requests advice
backend/app/api.py - FastAPI Variant → VIN Decoder: decodes VIN
backend/app/api1.py - FastAPI Variant → Price Valuation: estimates price
backend/app/api1.py - FastAPI Variant → Hybrid OCR: extracts text
backend/app/api1.py - FastAPI Variant → Contract Analysis: analyzes text
backend/app/api1.py - FastAPI Variant → VIN Decoder: decodes VIN
backend/app/api3.py - FastAPI Variant → Price Valuation: estimates price
backend/app/api3.py - VIN Decoder → NHTSA: queries
backend/app/vin_decoder.py - Price Valuation → MarketCheck: queries listings
backend/app/valuation.py - Negotiation Engine → Groq AI: generates advice
backend/app/negotiation.py - Contract File → Hybrid OCR: provides pages
README.md - Hybrid OCR → Image Cleanup: cleans scans
README.md - Hybrid OCR → OCR Results: saves results
backend/app/ocr.py - Negotiation Engine → Gemini AI: may use
README.md - Login Auth → Unified Flask Server: supports login