shvuuuu commited on
Commit
433f54a
1 Parent(s): eba1015

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def get_aggregation_period(df):
60
  return "30D"
61
 
62
 
63
- @st.cache(allow_output_mutation=True)
64
  def load_model():
65
  pipe = pipeline(task="sentiment-analysis", model="bhadresh-savani/distilbert-base-uncased-emotion")
66
  return pipe
 
60
  return "30D"
61
 
62
 
63
+ @st.cache_data
64
  def load_model():
65
  pipe = pipeline(task="sentiment-analysis", model="bhadresh-savani/distilbert-base-uncased-emotion")
66
  return pipe