Harshb11 commited on
Commit
c590636
·
verified ·
1 Parent(s): a5a129a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -17,23 +17,23 @@ hide_streamlit_style = """
17
  st.markdown(hide_streamlit_style, unsafe_allow_html=True)
18
 
19
 
20
- @st.cache_resource(allow_output_mutation=True)
21
  def load_sentiment_model():
22
  return SentimentAnalysis()
23
 
24
- @st.cache(allow_output_mutation=True)
25
  def load_keyword_model():
26
  return KeywordExtractor()
27
 
28
- @st.cache(allow_output_mutation=True)
29
  def load_pos_model():
30
  return POSTagging()
31
 
32
- @st.cache(allow_output_mutation=True)
33
  def load_emotion_model():
34
  return EmotionDetection()
35
 
36
- @st.cache(allow_output_mutation=True)
37
  def load_ner_model():
38
  return NamedEntityRecognition()
39
 
 
17
  st.markdown(hide_streamlit_style, unsafe_allow_html=True)
18
 
19
 
20
+ @st.cache_resource
21
  def load_sentiment_model():
22
  return SentimentAnalysis()
23
 
24
+ @st.cache_resource
25
  def load_keyword_model():
26
  return KeywordExtractor()
27
 
28
+ @st.cache_resource
29
  def load_pos_model():
30
  return POSTagging()
31
 
32
+ @st.cache_resource
33
  def load_emotion_model():
34
  return EmotionDetection()
35
 
36
+ @st.cache_resource
37
  def load_ner_model():
38
  return NamedEntityRecognition()
39