Nothing commited on
Upload folder using huggingface_hub
Browse files- streamlit_app.py +1 -2
streamlit_app.py
CHANGED
|
@@ -20,6 +20,7 @@ with col1:
|
|
| 20 |
with col2:
|
| 21 |
occupation = st.selectbox('Occupation', ['Salaried', 'Free Lancer', 'Business'])
|
| 22 |
monthly_income = st.number_input('Monthly Income', min_value=0)
|
|
|
|
| 23 |
designation = st.selectbox('Designation', ['Executive', 'Manager', 'Senior Manager', 'AVP', 'VP'])
|
| 24 |
|
| 25 |
# Travel Preferences
|
|
@@ -44,11 +45,9 @@ with col1:
|
|
| 44 |
with col2:
|
| 45 |
num_followups = st.number_input('Number of Followups', min_value=0)
|
| 46 |
pitch_satisfaction = st.slider('Pitch Satisfaction Score', 1, 5)
|
| 47 |
-
own_car = st.selectbox('Owns Car?', ['Yes', 'No'])
|
| 48 |
|
| 49 |
# Predict button
|
| 50 |
if st.button('Predict Purchase Likelihood'):
|
| 51 |
-
# Prepare input data
|
| 52 |
input_data = pd.DataFrame({
|
| 53 |
'Age': [age],
|
| 54 |
'Gender': [gender],
|
|
|
|
| 20 |
with col2:
|
| 21 |
occupation = st.selectbox('Occupation', ['Salaried', 'Free Lancer', 'Business'])
|
| 22 |
monthly_income = st.number_input('Monthly Income', min_value=0)
|
| 23 |
+
own_car = st.selectbox('Owns Car?', ['Yes', 'No'])
|
| 24 |
designation = st.selectbox('Designation', ['Executive', 'Manager', 'Senior Manager', 'AVP', 'VP'])
|
| 25 |
|
| 26 |
# Travel Preferences
|
|
|
|
| 45 |
with col2:
|
| 46 |
num_followups = st.number_input('Number of Followups', min_value=0)
|
| 47 |
pitch_satisfaction = st.slider('Pitch Satisfaction Score', 1, 5)
|
|
|
|
| 48 |
|
| 49 |
# Predict button
|
| 50 |
if st.button('Predict Purchase Likelihood'):
|
|
|
|
| 51 |
input_data = pd.DataFrame({
|
| 52 |
'Age': [age],
|
| 53 |
'Gender': [gender],
|