Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from keybert import KeyBERT
|
|
4 |
model = KeyBERT("sentence-transformers/xlm-r-distilroberta-base-paraphrase-v1")
|
5 |
|
6 |
def keywords(text):
|
7 |
-
keywords = model.extract_keywords(text,top_n=10)
|
8 |
keywords = dict(keywords)
|
9 |
return keywords
|
10 |
|
|
|
4 |
model = KeyBERT("sentence-transformers/xlm-r-distilroberta-base-paraphrase-v1")
|
5 |
|
6 |
def keywords(text):
|
7 |
+
keywords = model.extract_keywords(text,keyphrase_ngram_range=(1,2),top_n=10)
|
8 |
keywords = dict(keywords)
|
9 |
return keywords
|
10 |
|