Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def main():
|
|
27 |
|
28 |
# Load the pre-trained Sentence-Transformers model
|
29 |
model = SentenceTransformer("sentence-transformers/all-mpnet-base-v2")
|
30 |
-
|
31 |
# Generate word embeddings for the financial sentence and keywords
|
32 |
sentence_embedding = model.encode([financial_sentence])
|
33 |
keyword_embeddings = model.encode(keywords)
|
|
|
27 |
|
28 |
# Load the pre-trained Sentence-Transformers model
|
29 |
model = SentenceTransformer("sentence-transformers/all-mpnet-base-v2")
|
30 |
+
st.set_option('deprecation.showPyplotGlobalUse', False)
|
31 |
# Generate word embeddings for the financial sentence and keywords
|
32 |
sentence_embedding = model.encode([financial_sentence])
|
33 |
keyword_embeddings = model.encode(keywords)
|