change deprecated function
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ if submit:
|
|
94 |
plt.axis("off")
|
95 |
st.pyplot(fig)
|
96 |
st.write("<h3>✨ Sentiment Clustering</h3>",unsafe_allow_html=True)
|
97 |
-
@st.
|
98 |
def load_sentence_model():
|
99 |
embedding_model = SentenceTransformer('sentence_bert')
|
100 |
return embedding_model
|
|
|
94 |
plt.axis("off")
|
95 |
st.pyplot(fig)
|
96 |
st.write("<h3>✨ Sentiment Clustering</h3>",unsafe_allow_html=True)
|
97 |
+
@st.cache_resource
|
98 |
def load_sentence_model():
|
99 |
embedding_model = SentenceTransformer('sentence_bert')
|
100 |
return embedding_model
|