Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
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)
|