Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,11 @@ from datetime import date
|
|
| 20 |
|
| 21 |
|
| 22 |
m = hf_hub_download(repo_id="marvmk/model-test", filename="model.pkl")
|
| 23 |
-
model = pickle.load(open(m, 'rb'))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# downloading the last 10 days to make the prediction
|
| 26 |
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
m = hf_hub_download(repo_id="marvmk/model-test", filename="model.pkl")
|
| 23 |
+
# model = pickle.load(open(m, 'rb'))
|
| 24 |
+
|
| 25 |
+
with open(m, "rb") as f:
|
| 26 |
+
model = pickle.load(f)
|
| 27 |
+
|
| 28 |
|
| 29 |
# downloading the last 10 days to make the prediction
|
| 30 |
|