Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -14,24 +14,6 @@ st.write("""
|
|
| 14 |
This application predicts whether a customer will purchase the newly introduced Wellness Tourism Package.
|
| 15 |
""")
|
| 16 |
|
| 17 |
-
# User input
|
| 18 |
-
Type = st.selectbox("Machine Type", ["H", "L", "M"])
|
| 19 |
-
air_temp = st.number_input("Air Temperature (K)", min_value=250.0, max_value=400.0, value=298.0, step=0.1)
|
| 20 |
-
process_temp = st.number_input("Process Temperature (K)", min_value=250.0, max_value=500.0, value=324.0, step=0.1)
|
| 21 |
-
rot_speed = st.number_input("Rotational Speed (RPM)", min_value=0, max_value=3000, value=1400)
|
| 22 |
-
torque = st.number_input("Torque (Nm)", min_value=0.0, max_value=100.0, value=40.0, step=0.1)
|
| 23 |
-
tool_wear = st.number_input("Tool Wear (min)", min_value=0, max_value=300, value=10)
|
| 24 |
-
|
| 25 |
-
# Assemble input into DataFrame
|
| 26 |
-
input_data = pd.DataFrame([{
|
| 27 |
-
'Air_temperature': air_temp,
|
| 28 |
-
'Process_temperature': process_temp,
|
| 29 |
-
'Rotational_speed': rot_speed,
|
| 30 |
-
'Torque': torque,
|
| 31 |
-
'Tool_wear': tool_wear,
|
| 32 |
-
'Type': Type
|
| 33 |
-
}])
|
| 34 |
-
|
| 35 |
# --- Categorical fields ---
|
| 36 |
TypeofContact = st.selectbox("Type of Contact", ["Company Invited", "Self Inquiry"])
|
| 37 |
CityTier = st.selectbox("City Tier", [1, 2, 3])
|
|
|
|
| 14 |
This application predicts whether a customer will purchase the newly introduced Wellness Tourism Package.
|
| 15 |
""")
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# --- Categorical fields ---
|
| 18 |
TypeofContact = st.selectbox("Type of Contact", ["Company Invited", "Self Inquiry"])
|
| 19 |
CityTier = st.selectbox("City Tier", [1, 2, 3])
|