trish06 commited on
Commit
15bbd00
·
verified ·
1 Parent(s): e98d1d2

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +1 -1
backend/main.py CHANGED
@@ -110,7 +110,7 @@ def extract_text_from_pdf(pdf_path: str) -> str:
110
  )
111
 
112
  if methods_match and len(methods_match.group(1).strip()) > 200:
113
- text = methods_match.group(1)
114
  else:
115
  chars = len(text)
116
  text = text[chars // 10: chars // 10 + 15000]
 
110
  )
111
 
112
  if methods_match and len(methods_match.group(1).strip()) > 200:
113
+ text = methods_match.group(2)
114
  else:
115
  chars = len(text)
116
  text = text[chars // 10: chars // 10 + 15000]