Spaces:
Sleeping
Sleeping
Jonas Bechthold commited on
Commit ·
a0e63ac
1
Parent(s): 251c1ea
README change
Browse files
app.py
CHANGED
|
@@ -2,11 +2,8 @@
|
|
| 2 |
import streamlit as st
|
| 3 |
import joblib
|
| 4 |
import pandas as pd
|
| 5 |
-
|
| 6 |
from sklearn.linear_model import LinearRegression
|
| 7 |
|
| 8 |
-
|
| 9 |
-
# Loading the model
|
| 10 |
pipe = joblib.load('lr_regression_ny2019.pkl')
|
| 11 |
|
| 12 |
st.title('Airbnb price predictor')
|
|
@@ -73,11 +70,4 @@ if submit_button:
|
|
| 73 |
|
| 74 |
# Display the prediction
|
| 75 |
st.header("Predicted Airbnb price")
|
| 76 |
-
st.write(f"the prediction is {prediction_value:.2f} dollar!")
|
| 77 |
-
|
| 78 |
-
st.markdown(
|
| 79 |
-
"""
|
| 80 |
-
See how this model was created on Kaggle:<br>
|
| 81 |
-
[🍷 Wine Quality - EDA, Prediction and Deploy](https://www.kaggle.com/code/lusfernandotorres/wine-quality-eda-prediction-and-deploy/notebook)
|
| 82 |
-
""", unsafe_allow_html=True
|
| 83 |
-
)
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
import joblib
|
| 4 |
import pandas as pd
|
|
|
|
| 5 |
from sklearn.linear_model import LinearRegression
|
| 6 |
|
|
|
|
|
|
|
| 7 |
pipe = joblib.load('lr_regression_ny2019.pkl')
|
| 8 |
|
| 9 |
st.title('Airbnb price predictor')
|
|
|
|
| 70 |
|
| 71 |
# Display the prediction
|
| 72 |
st.header("Predicted Airbnb price")
|
| 73 |
+
st.write(f"the prediction is {prediction_value:.2f} dollar!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|