Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,9 +9,6 @@ import os
|
|
| 9 |
# ---------------------------------------------------------
|
| 10 |
ARTIFACT_PATH = "dynamic_pricing_artifact.joblib"
|
| 11 |
|
| 12 |
-
if not os.path.exists(ARTIFACT_PATH):
|
| 13 |
-
raise FileNotFoundError("Upload dynamic_pricing_artifact.joblib to your Space!")
|
| 14 |
-
|
| 15 |
artifact = joblib.load(ARTIFACT_PATH)
|
| 16 |
model = artifact["model"]
|
| 17 |
FEATURES = artifact["features"]
|
|
|
|
| 9 |
# ---------------------------------------------------------
|
| 10 |
ARTIFACT_PATH = "dynamic_pricing_artifact.joblib"
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
artifact = joblib.load(ARTIFACT_PATH)
|
| 13 |
model = artifact["model"]
|
| 14 |
FEATURES = artifact["features"]
|