Skip to content

πŸ“± AI-powered phone recommendation system using Flask, Machine Learning, and Waitress. Classifies user queries and suggests the best smartphones based on their needs.

License

Notifications You must be signed in to change notification settings

zainlatif/phonefinderai-v6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± Phone Finder AI β€” Flask + ML Backend

An AI-powered smartphone recommendation system built using Flask, scikit-learn, and Waitress. It takes natural language queries from users like "Best camera phone under 1 lakh" and returns personalized smartphone suggestions based on their needs.


πŸš€ Features

  • πŸ” Understands natural language queries
  • πŸ“Š Uses machine learning (Logistic Regression + TF-IDF)
  • πŸ“± Recommends top 5 phones based on features (camera, battery, performance, ruggedness)
  • 🌐 Provides a REST API (/predict) for frontend consumption
  • 🧠 Pre-trained ML model (model.pkl) with custom vectorizer (vectorizer.pkl)
  • βš™οΈ Production-ready using Waitress WSGI server

πŸ› οΈ Technologies Used

Technology Purpose
Flask Web API framework
scikit-learn Machine Learning model training
pandas CSV handling and data processing
TfidfVectorizer Text feature extraction from user query
LogisticRegression Query classification
Waitress Production-grade Python WSGI server
Flask-CORS Handles CORS for frontend API calls
JavaScript (AJAX) Used in frontend to communicate with API

git clone https://github.com/yourusername/phonefinder-backend.git cd phonefinder-backend

pip install flask flask_cors waitress pandas scikit-learn joblib

python model/train_model.py

python api/app.py

open index.html with live server (Now you can chat with this model)

About

πŸ“± AI-powered phone recommendation system using Flask, Machine Learning, and Waitress. Classifies user queries and suggests the best smartphones based on their needs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published