Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def price(companyName,modelName,modelYear,locaiton,mileage,engineType,engineCapa
|
|
| 42 |
})
|
| 43 |
prediction=pipe.predict(input_data)[0]
|
| 44 |
return prediction
|
| 45 |
-
st.title('Car Price Prediction:car @yusufenes')
|
| 46 |
st.write('Please Chose Car Specifications')
|
| 47 |
companyName = st.selectbox('Company Name',df['Company Name'].unique())
|
| 48 |
modelName = st.selectbox('Model Name',df[df['Company Name']==companyName]['Model Name'].unique())
|
|
@@ -58,5 +58,5 @@ transmissionType = st.selectbox('Transmission Type',df['Transmission Type'].uniq
|
|
| 58 |
registrationStatus = st.selectbox('Registration Status',df['Registration Status'].unique())
|
| 59 |
if st.button('Predict'):
|
| 60 |
pred=price(companyName,modelName,modelYear,locaiton,mileage,engineType,engineCapacity,color,assembly,bodyType,transmissionType,registrationStatus)
|
| 61 |
-
st.success(f'The predicted price is :red_car: {pred.round(2)}
|
| 62 |
st.balloons()
|
|
|
|
| 42 |
})
|
| 43 |
prediction=pipe.predict(input_data)[0]
|
| 44 |
return prediction
|
| 45 |
+
st.title('Car Price Prediction :car: -> :dollar: @yusufenes')
|
| 46 |
st.write('Please Chose Car Specifications')
|
| 47 |
companyName = st.selectbox('Company Name',df['Company Name'].unique())
|
| 48 |
modelName = st.selectbox('Model Name',df[df['Company Name']==companyName]['Model Name'].unique())
|
|
|
|
| 58 |
registrationStatus = st.selectbox('Registration Status',df['Registration Status'].unique())
|
| 59 |
if st.button('Predict'):
|
| 60 |
pred=price(companyName,modelName,modelYear,locaiton,mileage,engineType,engineCapacity,color,assembly,bodyType,transmissionType,registrationStatus)
|
| 61 |
+
st.success(f'The predicted price is :red_car: {pred.round(2)} :heavy_dollar_sign:')
|
| 62 |
st.balloons()
|