M17idd commited on
Commit
e6a1539
·
verified ·
1 Parent(s): 9bba193

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -516,7 +516,7 @@ def extract_keywords_from_text(text, query_words):
516
  def clean_text(text):
517
  return re.sub(r'[^آ-ی۰-۹0-9،.؟!؛+\-* ]+', '', text)
518
 
519
- def find_closest_lines(query, doc_texts, stop_words, top_n=10):
520
  cleaned_query = remove_stop_words(query, stop_words)
521
  query_words = cleaned_query.split()
522
  all_matched_lines = []
 
516
  def clean_text(text):
517
  return re.sub(r'[^آ-ی۰-۹0-9،.؟!؛+\-* ]+', '', text)
518
 
519
+ def find_closest_lines(query, doc_texts, stop_words, top_n=20):
520
  cleaned_query = remove_stop_words(query, stop_words)
521
  query_words = cleaned_query.split()
522
  all_matched_lines = []