Spaces:
Build error
Build error
abdulmatinomotoso
commited on
Commit
·
f89e9f5
1
Parent(s):
ccf8d4b
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ def read_in_text(url):
|
|
14 |
article = file.read()
|
15 |
return article
|
16 |
|
17 |
-
tmp_model = SentenceTransformer('valurank/MiniLM-L6-Keyword-Extraction')
|
18 |
-
kw_extractor = KeyBERT(
|
19 |
|
20 |
def get_keybert_results_with_vectorizer(text, number_of_results=20):
|
21 |
try:
|
|
|
14 |
article = file.read()
|
15 |
return article
|
16 |
|
17 |
+
#tmp_model = SentenceTransformer('valurank/MiniLM-L6-Keyword-Extraction')
|
18 |
+
kw_extractor = KeyBERT('valurank/MiniLM-L6-Keyword-Extraction')
|
19 |
|
20 |
def get_keybert_results_with_vectorizer(text, number_of_results=20):
|
21 |
try:
|