hanifekaptan
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,9 @@ def price(mileage, make, model, trim, type, cylinder, liter, doors, cruise, soun
|
|
50 |
st.title("Used Car Price Prediction red_car")
|
51 |
st.write("Please select the car features.")
|
52 |
mileage = st.number_input("Mileage", 100, 200000)
|
53 |
-
make = st.selectbox("
|
54 |
model = st.selectbox("Model", data[data["Make"] == make]["Model"].unique())
|
55 |
-
trim = st.selectbox("Trim", data[(
|
56 |
car_type = st.selectbox("Type", data[(df["Make"] == make) & (data["Model"] == model) & (data["Trim"] == trim)]["Type"].unique())
|
57 |
cylinder = st.selectbox("Cylinder", data["Cylinder"].unique())
|
58 |
liter = st.number_input("Fuel Volume", 1, 10)
|
|
|
50 |
st.title("Used Car Price Prediction red_car")
|
51 |
st.write("Please select the car features.")
|
52 |
mileage = st.number_input("Mileage", 100, 200000)
|
53 |
+
make = st.selectbox("Brand", data["Make"].unique())
|
54 |
model = st.selectbox("Model", data[data["Make"] == make]["Model"].unique())
|
55 |
+
trim = st.selectbox("Trim", data[(data["Make"] == make) & (data["Model"] == model)]["Trim"].unique())
|
56 |
car_type = st.selectbox("Type", data[(df["Make"] == make) & (data["Model"] == model) & (data["Trim"] == trim)]["Type"].unique())
|
57 |
cylinder = st.selectbox("Cylinder", data["Cylinder"].unique())
|
58 |
liter = st.number_input("Fuel Volume", 1, 10)
|