Spaces:
Running
Running
Update app.py
Browse files
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
|
| 21 |
def load_sentiment_model():
|
| 22 |
return SentimentAnalysis()
|
| 23 |
|
| 24 |
-
@st.
|
| 25 |
def load_keyword_model():
|
| 26 |
return KeywordExtractor()
|
| 27 |
|
| 28 |
-
@st.
|
| 29 |
def load_pos_model():
|
| 30 |
return POSTagging()
|
| 31 |
|
| 32 |
-
@st.
|
| 33 |
def load_emotion_model():
|
| 34 |
return EmotionDetection()
|
| 35 |
|
| 36 |
-
@st.
|
| 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 |
|