File size: 1,049 Bytes
9c163c6 9e03a51 9c163c6 9e03a51 9c163c6 9e03a51 9c163c6 314d5cf 9c163c6 9e03a51 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | ---
title: House Price Prediction
emoji: 🏠
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.0.0
app_file: app.py
python_version: 3.11
pinned: false
---
# House Price Prediction
End-to-end machine learning app for predicting house sale prices with the Kaggle
`house-prices-advanced-regression-techniques` dataset.
## Train
Set up Kaggle credentials, then download the dataset:
```bash
python scripts/download_kaggle_data.py
```
Train the model:
```bash
python -m src.train
```
If `data/raw/train.csv` is not present, training falls back to the included sample
dataset so the app remains runnable.
## FastAPI
```bash
uvicorn src.api:app --reload
```
Prediction endpoint:
```http
POST /predict
```
## Gradio
```bash
python app.py
```
## Hugging Face Spaces
This repository is configured for a Gradio Space. The target Space is:
```text
pcsekhar/MLModels
```
Deploy with:
```bash
hf upload --repo-type space --exclude "data/raw/*" --exclude ".git/*" --commit-message "Deploy house price predictor" pcsekhar/MLModels .
```
|