Skip to content

harshsomankar123-tech/Car-Price-AI-Project

Repository files navigation

🚗 Car Price AI (GenAI Powered)

A Full-Stack Native Android Application that leverages Google Gemini Pro to estimate vehicle market values in real-time.

Project Banner Tech AI

💡 Inspiration

Buying a used car is confusing. Static calculators use outdated math, while human experts are expensive. I wanted to build a bridge: An app that "thinks" like an expert. By using a Large Language Model (LLM), this app considers brand value, luxury status, and market depreciation logic rather than just crunching raw numbers.


📸 Screenshots

| Android App (Client) | Live Admin Dashboard (Server) | |:image :|:Screenshot 2026-01-01 at 00 50 29 :|

🌟 Key Features

1. 🧠 Generative AI Core (Google Gemini)

Unlike standard calculators, this app sends a complex prompt to Google Gemini Pro. It analyzes the Make, Model, Year, Engine, and HP to determine a price based on "Luxury Status" and "Indian Market Trends."

2. 🛡️ Fail-Safe Hybrid Architecture

Reliability is key. I engineered a Dual-Engine System:

  • Primary: Queries the AI for a high-accuracy market prediction.
  • Fallback: If the AI service is down or rate-limited, the system automatically switches to a Mathematical Depreciation Algorithm (Math Fallback) to ensure the user always gets a result.

3. ⚡ Asynchronous Mobile Performance

The Android app is built with Kotlin Coroutines. It performs network requests on background threads (Dispatchers.IO), ensuring the UI remains buttery smooth (60fps) and never freezes while waiting for the server.

4. 📊 Real-Time Admin Dashboard

Includes a Server-Side Rendered (SSR) web dashboard (dashboard.html). It uses Jinja2 templates to log and visualize every request coming from the mobile app in real-time.


🏗️ Technical Architecture

This project uses a decoupled Client-Server Architecture.

🖥️ Server-Side Logging

The Python Flask backend maintains a live log of all incoming traffic and AI inference requests. This allows for debugging and performance monitoring in real-time.

![Server Logs]image

Terminal output showing successful API requests and template rendering.

graph LR
    A[📱 Android App] -- JSON Post Request --> B[🌐 Python Flask Server]
    B -- Prompt Engineering --> C[🤖 Google Gemini API]
    C -- Text Response --> B
    B -- Regex Parsing --> B
    B -- JSON Response --> A
Loading

About

Full-Stack Android App with Gemini AI Backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors