Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ candidates = kw_extractor.extract_keywords(text_input)
|
|
41 |
keyphrases = [candidate[0] for candidate in candidates]
|
42 |
kw_model = KeyBERT(model=model)
|
43 |
|
44 |
-
if keywords != []:
|
45 |
-
|
46 |
-
|
47 |
top_n=50,stop_words='english',vectorizer=KeyphraseCountVectorizer())
|
48 |
-
|
|
|
41 |
keyphrases = [candidate[0] for candidate in candidates]
|
42 |
kw_model = KeyBERT(model=model)
|
43 |
|
44 |
+
#if keywords != []:
|
45 |
+
st.info("Extracted keywords")
|
46 |
+
keywords = kw_model.extract_keywords(text_input,candidates, keyphrase_ngram_range=(1, 3),
|
47 |
top_n=50,stop_words='english',vectorizer=KeyphraseCountVectorizer())
|
48 |
+
st.table(keywords)
|