marvmk commited on
Commit
6fdf06c
·
1 Parent(s): 52894e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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