You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
import streamlit as st
import pandas as pd
from sklearn.linear_model import LinearRegression
st.set_page_config(page_title="Mainpuri Property AI", layout="centered")
st.title("馃彙 Mainpuri Property Rate Prediction AI")
# ---- Dummy data ----
data = {
"size": [1000, 1500, 2000, 1200, 1800],
"road_width": [20, 30, 40, 25, 35],
"price": [2000000, 3500000, 5000000, 2500000, 4000000]
}
df = pd.DataFrame(data)
X = df[["size", "road_width"]]
y = df["price"]
model = LinearRegression()
model.fit(X, y)
st.subheader("Enter Property Details")
size = st.number_input("Land Size (sq ft)", min_value=100, max_value=10000, value=1200)
road_width = st.number_input("Road Width (ft)", min_value=10, max_value=100, value=25)
if st.button("Predict Price"):
predicted_price = model.predict([[size, road_width]])[0]
st.success(f"Predicted Property Price: 鈧箋predicted_price:,.0f}")聽#3
Activity