saritha commited on
Commit
e10d75d
·
verified ·
1 Parent(s): dfa9f23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -52,8 +52,10 @@ async def initialize(file_path, question):
52
  if phrase.lower() in page.page_content.lower():
53
  page_scores[i] += 1
54
 
55
- # Determine the page with the highest score
56
  max_score = max(page_scores)
 
 
57
  relevant_pages = [i+1 for i, score in enumerate(page_scores) if score == max_score]
58
 
59
  if relevant_pages:
 
52
  if phrase.lower() in page.page_content.lower():
53
  page_scores[i] += 1
54
 
55
+ # Determine the maximum score
56
  max_score = max(page_scores)
57
+
58
+ # Collect the page numbers with the maximum score
59
  relevant_pages = [i+1 for i, score in enumerate(page_scores) if score == max_score]
60
 
61
  if relevant_pages: