Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,3 @@
|
|
| 1 |
-
from sklearn.model_selection import train_test_split
|
| 2 |
-
from sklearn.linear_model import LinearRegression,Lasso,Ridge
|
| 3 |
-
from sklearn.preprocessing import OneHotEncoder, StandardScaler
|
| 4 |
-
from sklearn.compose import make_column_transformer
|
| 5 |
-
from sklearn.pipeline import make_pipeline
|
| 6 |
-
from sklearn.metrics import r2_score
|
| 7 |
import streamlit as st
|
| 8 |
import pickle
|
| 9 |
import pandas as pd
|
|
@@ -26,5 +20,6 @@ def predict():
|
|
| 26 |
# print(type(location),type(bhk),type(bath),type(sqft))
|
| 27 |
return np.abs(np.round(prediction,2))
|
| 28 |
|
| 29 |
-
if(st.button('
|
|
|
|
| 30 |
st.title(predict())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pickle
|
| 3 |
import pandas as pd
|
|
|
|
| 20 |
# print(type(location),type(bhk),type(bath),type(sqft))
|
| 21 |
return np.abs(np.round(prediction,2))
|
| 22 |
|
| 23 |
+
if(st.button('Check_the_price')):
|
| 24 |
+
st.title("The approximate price of this property is: ")
|
| 25 |
st.title(predict())
|