shvuuuu commited on
Commit
eba1015
1 Parent(s): f866ffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -60,17 +60,12 @@ def get_aggregation_period(df):
60
  return "30D"
61
 
62
 
63
- @st.cache_data(allow_output_mutation=True)
64
  def load_model():
65
  pipe = pipeline(task="sentiment-analysis", model="bhadresh-savani/distilbert-base-uncased-emotion")
66
  return pipe
67
 
68
 
69
- """
70
- # Twitter Emotion Analyser
71
- """
72
-
73
-
74
  pipe = load_model()
75
  twitter_handle = st.sidebar.text_input("Twitter handle:", "elonmusk")
76
  twitter_count = st.sidebar.selectbox("Number of tweets:", (10, 100, 500, 1000, 3200))
 
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
67
 
68
 
 
 
 
 
 
69
  pipe = load_model()
70
  twitter_handle = st.sidebar.text_input("Twitter handle:", "elonmusk")
71
  twitter_count = st.sidebar.selectbox("Number of tweets:", (10, 100, 500, 1000, 3200))