ahm14 commited on
Commit
5b55d6b
·
verified ·
1 Parent(s): f9f3521

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def extract_keywords_with_keybert(text, top_n= 15):
40
  """
41
  try:
42
  # Extract keywords along with their relevance scores.
43
- keywords = kw_model.extract_keywords(text, keyphrase_ngram_range=(1, 2, 3), stop_words='english', top_n=top_n)
44
  # Return only the keyword texts
45
  return [kw[0] for kw in keywords]
46
  except Exception as e:
 
40
  """
41
  try:
42
  # Extract keywords along with their relevance scores.
43
+ keywords = kw_model.extract_keywords(text, keyphrase_ngram_range=(1, 2), stop_words='english', top_n=top_n)
44
  # Return only the keyword texts
45
  return [kw[0] for kw in keywords]
46
  except Exception as e: