Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -19,20 +19,20 @@ Please enter the sensor and configuration data below to get a prediction.
|
|
| 19 |
|
| 20 |
# User input
|
| 21 |
Type = st.selectbox("Machine Type", ["H", "L", "M"])
|
| 22 |
-
air_temp = st.number_input("Air
|
| 23 |
-
process_temp = st.number_input("Process
|
| 24 |
rot_speed = st.number_input("Rotational Speed (RPM)", min_value=0, max_value=3000, value=1400)
|
| 25 |
torque = st.number_input("Torque (Nm)", min_value=0.0, max_value=100.0, value=40.0, step=0.1)
|
| 26 |
tool_wear = st.number_input("Tool Wear (min)", min_value=0, max_value=300, value=10)
|
| 27 |
|
| 28 |
# Assemble input into DataFrame
|
| 29 |
input_data = pd.DataFrame([{
|
| 30 |
-
'
|
| 31 |
-
'
|
| 32 |
-
'
|
| 33 |
'Torque': torque,
|
| 34 |
-
'
|
| 35 |
-
'Type':
|
| 36 |
}])
|
| 37 |
|
| 38 |
|
|
|
|
| 19 |
|
| 20 |
# User input
|
| 21 |
Type = st.selectbox("Machine Type", ["H", "L", "M"])
|
| 22 |
+
air_temp = st.number_input("Air temperature (K)", min_value=250.0, max_value=400.0, value=298.0, step=0.1)
|
| 23 |
+
process_temp = st.number_input("Process temperature (K)", min_value=250.0, max_value=500.0, value=324.0, step=0.1)
|
| 24 |
rot_speed = st.number_input("Rotational Speed (RPM)", min_value=0, max_value=3000, value=1400)
|
| 25 |
torque = st.number_input("Torque (Nm)", min_value=0.0, max_value=100.0, value=40.0, step=0.1)
|
| 26 |
tool_wear = st.number_input("Tool Wear (min)", min_value=0, max_value=300, value=10)
|
| 27 |
|
| 28 |
# Assemble input into DataFrame
|
| 29 |
input_data = pd.DataFrame([{
|
| 30 |
+
'Air temperature': air_temp,
|
| 31 |
+
'Process temperature': process_temp,
|
| 32 |
+
'Rotational speed': rot_speed,
|
| 33 |
'Torque': torque,
|
| 34 |
+
'Tool wear': tool_wear,
|
| 35 |
+
'Type': Type
|
| 36 |
}])
|
| 37 |
|
| 38 |
|