M17idd commited on
Commit
6c55ebc
·
1 Parent(s): 3260cb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -592,7 +592,7 @@ def find_closest_lines(query, doc_texts, stop_words, top_n=10):
592
  # حالا این رو در کد اصلی استفاده می‌کنیم:
593
  if query:
594
  # پیدا کردن ۱۰ خط نزدیک‌تر به سوال
595
- closest_lines = find_closest_lines(query, doc_texts, stop_words, top_n=10)
596
 
597
  if closest_lines:
598
  prompt = f"""
 
592
  # حالا این رو در کد اصلی استفاده می‌کنیم:
593
  if query:
594
  # پیدا کردن ۱۰ خط نزدیک‌تر به سوال
595
+ closest_lines = find_closest_lines(query, doc_texts, stop_words, top_n=3)
596
 
597
  if closest_lines:
598
  prompt = f"""