CoolFace
Apppublic

wafa2025/getaround-pricing-api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿš— Getaround Pricing API

This project provides a machine learning model to predict the daily rental price of cars on Getaround. The model was trained on car features such as mileage, engine power, fuel type, car type, and available equipment.


๐Ÿ“Š Project Deliverables

  • โ€”โœ… Deployed dashboard: Streamlit app
  • โ€”โœ… GitHub repository with full code
  • โ€”โœ… Online API hosted on Hugging Face with /predict endpoint

๐Ÿ‘‰ Try the API here: Getaround Pricing API Docs


โš™๏ธ How to Use the API

Send a POST request to /predict with car features in JSON format. Example:

bash
curl -X POST "https://wafa2025-getaround-pricing-api.hf.space/predict" \
-H "Content-Type: application/json" \
-d '{
  "mileage": 35000,
  "engine_power": 150,
  "model_key": "audi",
  "fuel": "diesel",
  "paint_color": "black",
  "car_type": "sedan",
  "private_parking_available": true,
  "has_gps": false,
  "has_air_conditioning": true,
  "automatic_car": true,
  "has_getaround_connect": false,
  "has_speed_regulator": true,
  "winter_tires": false
}'

{
  "predicted_price_per_day": 151.31
}

๐Ÿ›  Tech Stack

Python

Scikit-learn (RandomForestRegressor)

FastAPI

Hugging Face Spaces (Docker)

Streamlit (Dashboard)