Nra commited on
Commit
9a8de98
·
verified ·
1 Parent(s): 06ad892

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,9 +2,10 @@ import streamlit as st
2
  import pandas as pd
3
  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="Nra/machine_failure_model", filename="best_machine_failure_model_v1.joblib") # repo_id is case-sensitive
8
  model = joblib.load(model_path)
9
 
10
  # Streamlit UI for Machine Failure Prediction
 
2
  import pandas as pd
3
  from huggingface_hub import hf_hub_download
4
  import joblib
5
+ from week_2_mls.config import HF_REPO_ID
6
 
7
  # Download and load the model
8
+ model_path = hf_hub_download(repo_id=HF_REPO_ID, filename="best_machine_failure_model_v1.joblib") # repo_id is case-sensitive
9
  model = joblib.load(model_path)
10
 
11
  # Streamlit UI for Machine Failure Prediction