CoolFace
Apppublic

Ayushmishra01/apartment-rent-api

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
App README

Apartment Rent Predictor — FastAPI Backend

This is the FastAPI backend for the ML Apartment Price Predictor.

API Endpoints

MethodEndpointDescription
GET/Health check
POST/predictPredict monthly rent

POST /predict — Request Body

json
{
  "city": "Mumbai",
  "apartment_type": "2BHK",
  "area_sqft": 950,
  "age_of_building": 5,
  "furnished_status": "Semi-Furnished",
  "parking_available": 1,
  "gym": 1,
  "swimming_pool": 0,
  "distance_to_metro_km": 2.0,
  "distance_to_school_km": 1.0,
  "crime_rate_index": 3,
  "air_quality_index": 85,
  "avg_nearby_rent": 28000
}

Response

json
{
  "predicted_rent": 32895.0,
  "currency": "INR"
}

Model

  • —Algorithm: Random Forest Regressor (scikit-learn 1.6.1)
  • —Features: 13
  • —Training data: 120 apartments across 6 Indian cities
Ayushmishra01/apartment-rent-api · CoolFace