rakeshambudkar commited on
Commit
b30ff69
·
verified ·
1 Parent(s): 67c059f

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +5 -4
  2. requirements.txt +1 -0
app.py CHANGED
@@ -4,6 +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="rakeshambudkar/machine_failure_model", filename="best_machine_failure_model_v1.joblib")
8
  # model_path = hf_hub_download(repo_id="praneeth232/machine_failure_model", filename="best_machine_failure_model_v1.joblib")
9
  model = joblib.load(model_path)
@@ -25,11 +26,11 @@ tool_wear = st.number_input("Tool Wear (min)", min_value=0, max_value=300, value
25
 
26
  # Assemble input into DataFrame
27
  input_data = pd.DataFrame([{
28
- 'Air temperature': air_temp,
29
- 'Process temperature': process_temp,
30
- 'Rotational speed': rot_speed,
31
  'Torque': torque,
32
- 'Tool wear': tool_wear,
33
  'Type': Type
34
  }])
35
 
 
4
  import joblib
5
 
6
  # Download and load the model
7
+
8
  model_path = hf_hub_download(repo_id="rakeshambudkar/machine_failure_model", filename="best_machine_failure_model_v1.joblib")
9
  # model_path = hf_hub_download(repo_id="praneeth232/machine_failure_model", filename="best_machine_failure_model_v1.joblib")
10
  model = joblib.load(model_path)
 
26
 
27
  # Assemble input into DataFrame
28
  input_data = pd.DataFrame([{
29
+ 'Air_temperature': air_temp,
30
+ 'Process_temperature': process_temp,
31
+ 'Rotational_speed': rot_speed,
32
  'Torque': torque,
33
+ 'Tool_wear': tool_wear,
34
  'Type': Type
35
  }])
36
 
requirements.txt CHANGED
@@ -4,3 +4,4 @@ streamlit==1.43.2
4
  joblib==1.5.1
5
  scikit-learn==1.6.0
6
  xgboost==2.1.4
 
 
4
  joblib==1.5.1
5
  scikit-learn==1.6.0
6
  xgboost==2.1.4
7
+ mlflow==3.0.1