Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -54,6 +54,9 @@ def load_artifacts():
|
|
| 54 |
except Exception as e:
|
| 55 |
st.error(f"❌ Error loading model artifacts: {e}")
|
| 56 |
return None, None, {}, False
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
# =============================================================================
|
|
|
|
| 54 |
except Exception as e:
|
| 55 |
st.error(f"❌ Error loading model artifacts: {e}")
|
| 56 |
return None, None, {}, False
|
| 57 |
+
model, scaler, metadata, MODEL_LOADED = load_artifacts()
|
| 58 |
+
|
| 59 |
+
MODEL_NAME = metadata.get("model_name", "Predictive Maintenance Model")
|
| 60 |
|
| 61 |
|
| 62 |
# =============================================================================
|