SharifahMal commited on
Commit
a8f59c5
·
verified ·
1 Parent(s): 17a2414

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def answer_question(text, question):
112
 
113
  # تقسيم النص إلى شرائح صغيرة بحيث لا تزيد كل شريحة عن 256 كلمة
114
  words = text.split()
115
- chunk_size = 70
116
  segments = [" ".join(words[i:i+chunk_size]) for i in range(0, len(words), chunk_size)]
117
 
118
  best_answer = None
 
112
 
113
  # تقسيم النص إلى شرائح صغيرة بحيث لا تزيد كل شريحة عن 256 كلمة
114
  words = text.split()
115
+ chunk_size = 256
116
  segments = [" ".join(words[i:i+chunk_size]) for i in range(0, len(words), chunk_size)]
117
 
118
  best_answer = None