Add1E commited on
Commit
738d8c0
·
1 Parent(s): 1971b23

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -8,7 +8,7 @@ import streamlit as st
8
  tqdm.pandas()
9
 
10
 
11
- def predict_popularity(features):
12
  predictions = [None] * 2
13
  predictions[0], predictions[1] = rf_model.predict([features]), model.predict([features])
14
  addToCsvAndTrain(trainset)
 
8
  tqdm.pandas()
9
 
10
 
11
+ def predict_popularity(features, trainset):
12
  predictions = [None] * 2
13
  predictions[0], predictions[1] = rf_model.predict([features]), model.predict([features])
14
  addToCsvAndTrain(trainset)