trish06 commited on
Commit
bc8aca9
·
verified ·
1 Parent(s): 9f9465c

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +2 -2
backend/main.py CHANGED
@@ -116,8 +116,8 @@ def extract_text_from_pdf(pdf_path: str) -> str:
116
  text = text[chars // 10: chars // 10 + 15000]
117
 
118
  words = text.split()
119
- if len(words) > 2500:
120
- text = " ".join(words[:2500])
121
 
122
  return text
123
 
 
116
  text = text[chars // 10: chars // 10 + 15000]
117
 
118
  words = text.split()
119
+ if len(words) > 1500:
120
+ text = " ".join(words[:1500])
121
 
122
  return text
123