Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def preprocess_input(values):
|
|
| 17 |
st.title('Predicci贸n de Precios de Viviendas')
|
| 18 |
|
| 19 |
# Campos de entrada para cada par谩metro
|
| 20 |
-
price = st.number_input('Price', format="%.2f")
|
| 21 |
area = st.number_input('Area', format="%.2f")
|
| 22 |
bedrooms = st.number_input('Bedrooms', format="%.2f")
|
| 23 |
bathrooms = st.number_input('Bathrooms', format="%.2f")
|
|
@@ -33,8 +33,7 @@ furnishingstatus_semi_furnished = st.number_input('Furnishing Status (Semi-Furni
|
|
| 33 |
furnishingstatus_unfurnished = st.number_input('Furnishing Status (Unfurnished: 1, Semi-Furnished: 0)', format="%.2f")
|
| 34 |
|
| 35 |
# Crear una lista con los valores ingresados
|
| 36 |
-
input_values = [
|
| 37 |
-
price, area, bedrooms, bathrooms, stories, parking,
|
| 38 |
mainroad_yes, guestroom_yes, basement_yes,
|
| 39 |
hotwaterheating_yes, airconditioning_yes, prefarea_yes,
|
| 40 |
furnishingstatus_semi_furnished, furnishingstatus_unfurnished
|
|
|
|
| 17 |
st.title('Predicci贸n de Precios de Viviendas')
|
| 18 |
|
| 19 |
# Campos de entrada para cada par谩metro
|
| 20 |
+
#price = st.number_input('Price', format="%.2f")
|
| 21 |
area = st.number_input('Area', format="%.2f")
|
| 22 |
bedrooms = st.number_input('Bedrooms', format="%.2f")
|
| 23 |
bathrooms = st.number_input('Bathrooms', format="%.2f")
|
|
|
|
| 33 |
furnishingstatus_unfurnished = st.number_input('Furnishing Status (Unfurnished: 1, Semi-Furnished: 0)', format="%.2f")
|
| 34 |
|
| 35 |
# Crear una lista con los valores ingresados
|
| 36 |
+
input_values = [ area, bedrooms, bathrooms, stories, parking,
|
|
|
|
| 37 |
mainroad_yes, guestroom_yes, basement_yes,
|
| 38 |
hotwaterheating_yes, airconditioning_yes, prefarea_yes,
|
| 39 |
furnishingstatus_semi_furnished, furnishingstatus_unfurnished
|