sandtemp01 commited on
Commit
8a5fdb5
·
verified ·
1 Parent(s): f1eff7a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import hf_hub_download
4
  import joblib
5
 
6
  # Download and load the model
7
- model_path = hf_hub_download(repo_id="sandtemp01/machine_failure_model", filename="best_machine_failure_model_v1.joblib")
8
  model = joblib.load(model_path)
9
 
10
  # Streamlit UI for Machine Failure Prediction
@@ -24,11 +24,11 @@ tool_wear = st.number_input("Tool Wear (min)", min_value=0, max_value=300, value
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
 
 
4
  import joblib
5
 
6
  # Download and load the model
7
+ model_path = hf_hub_download(repo_id="sandtemp01/machine_failure_model-model-demo1", filename="best_machine_failure_model_v1.joblib")
8
  model = joblib.load(model_path)
9
 
10
  # Streamlit UI for Machine Failure Prediction
 
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