Spaces:
Sleeping
Sleeping
removed the import for HF_REPO_ID and hard coded it
Browse files
app.py
CHANGED
|
@@ -2,7 +2,9 @@ import streamlit as st
|
|
| 2 |
import pandas as pd
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
import joblib
|
| 5 |
-
|
|
|
|
|
|
|
| 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
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
import joblib
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
HF_REPO_ID = "Nra/Machine-Failure-Prediction" # name is case sensitive
|
| 8 |
|
| 9 |
# Download and load the model
|
| 10 |
model_path = hf_hub_download(repo_id=HF_REPO_ID, filename="best_machine_failure_model_v1.joblib") # repo_id is case-sensitive
|