efeperro commited on
Commit
4da66d5
1 Parent(s): a4756fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ st.title("Movie Reviews: An NLP Sentiment analysis")
15
  #################################################################### Cache the model loading
16
 
17
  @st.cache_data()
18
- def load_model(model_path):
19
  model_pkl_file = "sentiment_model.pkl"
20
  with open(model_pkl_file, 'rb') as file:
21
  model = pickle.load(file)
 
15
  #################################################################### Cache the model loading
16
 
17
  @st.cache_data()
18
+ def load_model():
19
  model_pkl_file = "sentiment_model.pkl"
20
  with open(model_pkl_file, 'rb') as file:
21
  model = pickle.load(file)