Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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=
|
| 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
|