Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
import numpy as np
|
|
|
4 |
from sklearn.metrics import r2_score
|
5 |
from sklearn.linear_model import LinearRegression
|
6 |
from sklearn.model_selection import train_test_split
|
@@ -16,7 +17,9 @@ df = pd.read_csv('housing.csv')
|
|
16 |
df.rename(columns = {'Avg. Area Income':'Income','Avg. Area House Age':'House_age', 'Avg. Area Number of Rooms':'No_rooms',
|
17 |
'Avg. Area Number of Bedrooms':'No_bedrooms', 'Area Population':'population'},inplace = True)
|
18 |
|
19 |
-
|
|
|
|
|
20 |
# HEADINGS
|
21 |
st.title('House Price Prediction')
|
22 |
st.sidebar.header('Housing Data')
|
|
|
1 |
import pandas as pd
|
2 |
import streamlit as st
|
3 |
import numpy as np
|
4 |
+
from PIL import Image
|
5 |
from sklearn.metrics import r2_score
|
6 |
from sklearn.linear_model import LinearRegression
|
7 |
from sklearn.model_selection import train_test_split
|
|
|
17 |
df.rename(columns = {'Avg. Area Income':'Income','Avg. Area House Age':'House_age', 'Avg. Area Number of Rooms':'No_rooms',
|
18 |
'Avg. Area Number of Bedrooms':'No_bedrooms', 'Area Population':'population'},inplace = True)
|
19 |
|
20 |
+
# Image
|
21 |
+
image = Image.open('houseprice.jpg')
|
22 |
+
st.image(image,caption = 'House Price Prediction')
|
23 |
# HEADINGS
|
24 |
st.title('House Price Prediction')
|
25 |
st.sidebar.header('Housing Data')
|