Gxnc/RealEstatePricePred
0
1import streamlit as st2import joblib3import numpy as np4 5# Modeli yükle6model = joblib.load("linear_regression_model.pkl")7 8# Başlık9st.title("🏡 Real Estate Price Prediction")10 11st.write("Enter property details to predict the price per unit area.")12 13# Girdi alanları14mrt = st.number_input("Distance to nearest MRT station (in meters)", min_value=0)15stores = st.number_input("Number of convenience stores", min_value=0, step=1)16latitude = st.number_input("Latitude", min_value=24.9, max_value=25.1, step=0.0001)17 18# Tahmin19if st.button("Predict"):20 21 input_data = np.array([[mrt, stores, latitude]])22 23 prediction = model.predict(input_data)[0]24 25 st.success(f"💰 Predicted Price per Unit Area: {prediction:.2f}")26 27 