shvuuuu commited on
Commit
43f117b
1 Parent(s): d0c916a

Update app.py

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